Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -emit-llvm -triple i386-linux-gnu -o %t %s
      2 // RUN: FileCheck --input-file=%t %s
      3 // PR10392
      4 
      5 #define push(foo) push(default)
      6 #pragma GCC visibility push(hidden)
      7 
      8 int v1;
      9 // CHECK: @v1 = common hidden global i32 0, align 4
     10 
     11 #pragma GCC visibility pop
     12 
     13 int v2;
     14 // CHECK: @v2 = common global i32 0, align 4
     15 
     16 _Pragma("GCC visibility push(hidden)");
     17 
     18 int v3;
     19 // CHECK: @v3 = common hidden global i32 0, align 4
     20