summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/debug-info-static.c
blob: d6ade2aee56cd9eed5f33d8a32b4afa472d73b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1  -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s

// CHECK: @f.xyzzy = internal global i32 0, align 4, !dbg [[XYZZY:![0-9]+]]

// CHECK: [[XYZZY]] = !DIGlobalVariableExpression(var: [[VAR:.*]], expr: !DIExpression())
// CHECK: [[VAR]] = distinct !DIGlobalVariable
void f(void)
{
   static int xyzzy;
   xyzzy += 3;
}