summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2009-10-20-GlobalDebug.c
blob: e56f227d2ac6acfbe4326edadc5a80d477b43f7f (plain)
1
2
3
4
5
6
7
8
9
10
// REQUIRES: x86-registered-target
// RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
int global;
int main() { 
  static int localstatic;
  return 0;
}

// CHECK:  !"0x34\00localstatic\00localstatic\00\005\001\001", !{{.*}}, !{{.*}}, !{{.*}}, i32* @main.localstatic, null} ; [ DW_TAG_variable ]
// CHECK:  !"0x34\00global\00global\00\003\000\001", null, !{{.*}}, !{{.*}}, i32* @global, null} ; [ DW_TAG_variable ]
OpenPOWER on IntegriCloud