[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / 2009-10-20-GlobalDebug.c
blobd65f628709a696513a962837c24b2e00caa2152b
1 // REQUIRES: x86-registered-target
2 // RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
4 // CHECK: @main.localstatic = internal global i32 0, align 4, !dbg [[L:![0-9]+]]
5 // CHECK: @global ={{.*}} global i32 0, align 4, !dbg [[G:![0-9]+]]
7 int global;
8 int main(void) {
9 static int localstatic;
10 return 0;
13 // CHECK: [[L]] = !DIGlobalVariableExpression(var: [[LV:.*]], expr: !DIExpression())
14 // CHECK: [[LV]] = distinct !DIGlobalVariable(name: "localstatic"
15 // CHECK-NOT: linkageName:
16 // CHECK-SAME: line: 9,
17 // CHECK: [[G]] = !DIGlobalVariableExpression(var: [[GV:.*]], expr: !DIExpression())
18 // CHECK: [[GV]] = distinct !DIGlobalVariable(name: "global"
19 // CHECK-NOT: linkageName:
20 // CHECK-SAME: line: 7,