Clang Project

clang_source_code/test/CodeGen/2010-08-10-DbgConstant.c
1// RUN: %clang_cc1 -S -emit-llvm -debug-info-kind=limited  %s -o - | FileCheck %s
2// CHECK: !DIGlobalVariableExpression(var: [[VAR:.*]], expr: !DIExpression(DW_OP_constu, 201, DW_OP_stack_value))
3
4static const unsigned int ro = 201;
5void bar(int);
6void foo() { bar(ro); }
7