12 lines · c
1// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s2 3// CHECK: @f.xyzzy = internal global i32 0, align 4, !dbg [[XYZZY:![0-9]+]]4 5// CHECK: [[XYZZY]] = !DIGlobalVariableExpression(var: [[VAR:.*]], expr: !DIExpression())6// CHECK: [[VAR]] = distinct !DIGlobalVariable7void f(void)8{9 static int xyzzy;10 xyzzy += 3;11}12