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