summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/getSourceDescriptor-crash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/getSourceDescriptor-crash.cpp')
-rw-r--r--clang/test/Modules/getSourceDescriptor-crash.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Modules/getSourceDescriptor-crash.cpp b/clang/test/Modules/getSourceDescriptor-crash.cpp
new file mode 100644
index 00000000000..ebc25c0b125
--- /dev/null
+++ b/clang/test/Modules/getSourceDescriptor-crash.cpp
@@ -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"
OpenPOWER on IntegriCloud