2011-06-04 02:36:30 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
|
2009-10-21 02:26:30 +08:00
|
|
|
int global;
|
2010-04-30 01:48:37 +08:00
|
|
|
int main() {
|
|
|
|
static int localstatic;
|
|
|
|
return 0;
|
|
|
|
}
|
2011-10-27 15:11:43 +08:00
|
|
|
|
2014-12-16 03:10:08 +08:00
|
|
|
// 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 ]
|