2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -S -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
|
2016-12-17 03:39:18 +08:00
|
|
|
// CHECK: !DIGlobalVariable({{.*}}, expr: [[EXPR:![0-9]+]])
|
2016-09-13 09:13:19 +08:00
|
|
|
// CHECK: [[EXPR]] = !DIExpression(DW_OP_constu, 201, DW_OP_stack_value)
|
2010-08-10 15:24:25 +08:00
|
|
|
|
|
|
|
static const unsigned int ro = 201;
|
|
|
|
void bar(int);
|
|
|
|
void foo() { bar(ro); }
|