xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2009-10-20-GlobalDebug.c (revision bdb565187c0f1a04513dd488df843317b27f86c8)
1 // REQUIRES: x86-registered-target
2 // RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
3 int global;
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