Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-scei-ps4 -O0 %s -o - | FileCheck --check-prefix=PS4 %s
      2 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-unknown-linux-gnu -O0 %s -o - | FileCheck --check-prefix=NON-PS4 %s
      3 
      4 namespace
      5 {
      6   int a = 5;
      7 }
      8 int *b = &a;
      9 
     10 namespace
     11 {
     12   namespace {
     13     int a1 = 5;
     14   }
     15   int a2 = 7;
     16 }
     17 int *b1 = &a1;
     18 int *b2 = &a2;
     19 
     20 
     21 // PS4:  [[NS:![0-9]+]] = !DINamespace
     22 // PS4:  [[NS2:![0-9]+]] = !DINamespace
     23 // PS4: !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0, entity: [[NS]])
     24 // PS4: !DIImportedEntity(tag: DW_TAG_imported_module, scope: [[NS]], entity: [[NS2]], line: {{[0-9]+}})
     25 // NON-PS4-NOT: !DIImportedEntity
     26 
     27