llvm-project/clang/test/CodeGen/debug-info-static.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
347 B
C
Raw Normal View History

// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
2011-11-05 00:57:26 +08:00
// CHECK: @f.xyzzy = internal global i32 0, align 4, !dbg [[XYZZY:![0-9]+]]
// CHECK: [[XYZZY]] = !DIGlobalVariableExpression(var: [[VAR:.*]], expr: !DIExpression())
// CHECK: [[VAR]] = distinct !DIGlobalVariable
2011-11-05 00:57:26 +08:00
void f(void)
{
static int xyzzy;
xyzzy += 3;
}