]> granicus.if.org Git - clang/commitdiff
Added test that covers changes in r263379.
authorAmjad Aboud <amjad.aboud@intel.com>
Sun, 13 Mar 2016 11:12:57 +0000 (11:12 +0000)
committerAmjad Aboud <amjad.aboud@intel.com>
Sun, 13 Mar 2016 11:12:57 +0000 (11:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263380 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/debug-info-imported-entity.cpp [new file with mode: 0644]

diff --git a/test/CodeGen/debug-info-imported-entity.cpp b/test/CodeGen/debug-info-imported-entity.cpp
new file mode 100644 (file)
index 0000000..a9a0408
--- /dev/null
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-unk-unk -o - -emit-llvm -debug-info-kind=limited %s | FileCheck %s
+
+namespace std { class A; }
+using std::A; using ::A;
+
+
+// CHECK: [[CompileUnit:![0-9]+]] = distinct !DICompileUnit({{.+}} imports: [[Imports:![0-9]+]])
+// CHECK: [[Imports]] = !{[[ImportedEntity:![0-9]+]]}
+// CHECK: [[ImportedEntity]] = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: [[CompileUnit]], entity: !"_ZTSSt1A", line: 4)
+