• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple i386-unknown-unknown %s -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
2 
3 int v;
4 enum e { MAX };
5 
foo(void)6 void foo (void)
7 {
8   v = MAX;
9 }
10 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
11 // CHECK-SAME: baseType: ![[LONG:[0-9]+]]
12 // CHECK-SAME: elements: ![[ELTS:[0-9]+]]
13 // CHECK: ![[LONG]] = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned)
14 // CHECK: ![[ELTS]] = !{![[MAX:[0-9]+]]}
15 // CHECK: ![[MAX]] = !DIEnumerator(name: "MAX", value: 0, isUnsigned: true)
16