Clang Project

clang_source_code/test/CodeGen/debug-info-static.c
1// RUN: %clang_cc1  -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
2
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 !DIGlobalVariable
7void f(void)
8{
9   static int xyzzy;
10   xyzzy += 3;
11}
12