[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-anon-namespace.cpp
blob56c8528abdee811b47e16e1b32737ef59f28152a
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -dwarf-explicit-import -O0 %s -o - | FileCheck --check-prefix=IMPORT %s
2 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -O0 %s -o - | FileCheck --check-prefix=NOIMPORT %s
4 namespace
6 int a = 5;
8 int *b = &a;
10 namespace
12 namespace {
13 int a1 = 5;
15 int a2 = 7;
17 int *b1 = &a1;
18 int *b2 = &a2;
20 // IMPORT: [[NS:![0-9]+]] = !DINamespace
21 // IMPORT: [[CU:![0-9]+]] = distinct !DICompileUnit
22 // IMPORT: [[NS2:![0-9]+]] = !DINamespace
23 // IMPORT: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[CU]], entity: [[NS]], file: {{![0-9]+}})
24 // IMPORT: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[NS]], entity: [[NS2]], file: {{![0-9]+}}, line: {{[0-9]+}})
25 // NOIMPORT-NOT: !DIImportedEntity