Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm %s -o %t
      2 namespace foo {
      3 
      4 // RUN: not grep "@a = global i32" %t
      5 extern "C" int a;
      6 
      7 // RUN: not grep "@_ZN3foo1bE = global i32" %t
      8 extern int b;
      9 
     10 // RUN: grep "@_ZN3foo1cE = global i32" %t | count 1
     11 int c = 5;
     12 
     13 // RUN: not grep "@_ZN3foo1dE" %t
     14 extern "C" struct d;
     15 
     16 }
     17