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
|
|
|
|
2012-02-04 07:58:39 +08:00
|
|
|
// CHECK: !14 = metadata !{i32 {{.*}}, i32 0, metadata !5, metadata !"localstatic", metadata !"localstatic", metadata !"", metadata !6, i32 5, metadata !9, i32 1, i32 1, i32* @main.localstatic} ; [ DW_TAG_variable ]
|
|
|
|
// CHECK: !15 = metadata !{i32 {{.*}}, i32 0, null, metadata !"global", metadata !"global", metadata !"", metadata !6, i32 3, metadata !9, i32 0, i32 1, i32* @global} ; [ DW_TAG_variable ]
|