diff options
Diffstat (limited to 'test/CodeGenCXX/debug-info-anon-namespace.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-anon-namespace.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/CodeGenCXX/debug-info-anon-namespace.cpp b/test/CodeGenCXX/debug-info-anon-namespace.cpp index 3f4ef2a38360..56c8528abdee 100644 --- a/test/CodeGenCXX/debug-info-anon-namespace.cpp +++ b/test/CodeGenCXX/debug-info-anon-namespace.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-scei-ps4 -O0 %s -o - | FileCheck --check-prefix=PS4 %s -// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-unknown-linux-gnu -O0 %s -o - | FileCheck --check-prefix=NON-PS4 %s +// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -dwarf-explicit-import -O0 %s -o - | FileCheck --check-prefix=IMPORT %s +// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -O0 %s -o - | FileCheck --check-prefix=NOIMPORT %s namespace { @@ -17,11 +17,9 @@ namespace int *b1 = &a1; int *b2 = &a2; - -// PS4: [[NS:![0-9]+]] = !DINamespace -// PS4: [[CU:![0-9]+]] = distinct !DICompileUnit -// PS4: [[NS2:![0-9]+]] = !DINamespace -// PS4: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[CU]], entity: [[NS]], file: {{![0-9]+}}) -// PS4: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[NS]], entity: [[NS2]], file: {{![0-9]+}}, line: {{[0-9]+}}) -// NON-PS4-NOT: !DIImportedEntity - +// IMPORT: [[NS:![0-9]+]] = !DINamespace +// IMPORT: [[CU:![0-9]+]] = distinct !DICompileUnit +// IMPORT: [[NS2:![0-9]+]] = !DINamespace +// IMPORT: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[CU]], entity: [[NS]], file: {{![0-9]+}}) +// IMPORT: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[NS]], entity: [[NS2]], file: {{![0-9]+}}, line: {{[0-9]+}}) +// NOIMPORT-NOT: !DIImportedEntity |