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
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIGlobalVariable(name: "localstatic"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: linkageName:
|
|
|
|
// CHECK-SAME: line: 5,
|
|
|
|
// CHECK-SAME: variable: i32* @main.localstatic
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIGlobalVariable(name: "global"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: linkageName:
|
|
|
|
// CHECK-SAME: line: 3,
|
|
|
|
// CHECK-SAME: variable: i32* @global
|