r268344 - Adding a test for a compiler crash that was fixed in r248069.
Douglas Yung via cfe-commits
cfe-commits at lists.llvm.org
Mon May 2 17:29:56 PDT 2016
Author: dyung
Date: Mon May 2 19:29:56 2016
New Revision: 268344
URL: http://llvm.org/viewvc/llvm-project?rev=268344&view=rev
Log:
Adding a test for a compiler crash that was fixed in r248069.
Differential Revision: http://reviews.llvm.org/D19048
Added:
cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/
cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
Added: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h?rev=268344&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h (added)
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/h1.h Mon May 2 19:29:56 2016
@@ -0,0 +1 @@
+#pragma once
Added: cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap?rev=268344&view=auto
==============================================================================
--- cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap (added)
+++ cfe/trunk/test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap Mon May 2 19:29:56 2016
@@ -0,0 +1,3 @@
+module foo {
+ header "h1.h"
+}
Added: cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp?rev=268344&view=auto
==============================================================================
--- cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp (added)
+++ cfe/trunk/test/Modules/getSourceDescriptor-crash.cpp Mon May 2 19:29:56 2016
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -I %S/Inputs/getSourceDescriptor-crash -S -emit-llvm -debug-info-kind=limited -fimplicit-module-maps %s -o - | FileCheck %s
+
+#include "h1.h"
+#include "h1.h"
+
+// CHECK: DIImportedEntity
+// CHECK-SAME: entity: ![[ENTITY:[0-9]+]]
+// CHECK: ![[ENTITY]] = !DIModule
+// CHECK-SAME: name: "foo"
More information about the cfe-commits
mailing list