xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2009-10-20-GlobalDebug.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // REQUIRES: x86-registered-target
2 // RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
3 int global;
main()4 int main() {
5   static int localstatic;
6   return 0;
7 }
8 
9 // CHECK:  !"0x34\00localstatic\00localstatic\00\005\001\001", !{{.*}}, !{{.*}}, !{{.*}}, i32* @main.localstatic, null} ; [ DW_TAG_variable ]
10 // CHECK:  !"0x34\00global\00global\00\003\000\001", null, !{{.*}}, !{{.*}}, i32* @global, null} ; [ DW_TAG_variable ]
11