2019-09-05 04:58:15 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
|
|
|
|
|
2010-08-11 02:27:15 +08:00
|
|
|
int v;
|
|
|
|
enum e { MAX };
|
|
|
|
|
|
|
|
void foo (void)
|
|
|
|
{
|
|
|
|
v = MAX;
|
|
|
|
}
|
2019-09-05 04:58:15 +08:00
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
|
|
|
|
// CHECK-SAME: baseType: ![[LONG:[0-9]+]]
|
|
|
|
// CHECK-SAME: elements: ![[ELTS:[0-9]+]]
|
|
|
|
// CHECK: ![[LONG]] = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned)
|
|
|
|
// CHECK: ![[ELTS]] = !{![[MAX:[0-9]+]]}
|
2021-07-27 07:06:17 +08:00
|
|
|
// CHECK: ![[MAX]] = !DIEnumerator(name: "MAX", value: 0)
|