1 // This test depends on a patch that was committed to upstream LLVM
2 // before 7.0, then backported to the Rust LLVM fork. It tests that
3 // debug info for "c-like" enums is properly emitted.
5 // ignore-tidy-linelength
7 // min-system-llvm-version 8.0
9 // compile-flags: -g -C no-prepopulate-passes
11 // DIFlagFixedEnum was deprecated in 8.0, renamed to DIFlagEnumClass.
12 // We match either for compatibility.
15 // CHECK: {{.*}}DICompositeType{{.*}}tag: DW_TAG_enumeration_type,{{.*}}name: "E",{{.*}}flags: {{(DIFlagEnumClass|DIFlagFixedEnum)}},{{.*}}
16 // CHECK: {{.*}}DIEnumerator{{.*}}name: "A",{{.*}}value: {{[0-9].*}}
17 // CHECK: {{.*}}DIEnumerator{{.*}}name: "B",{{.*}}value: {{[0-9].*}}
18 // CHECK: {{.*}}DIEnumerator{{.*}}name: "C",{{.*}}value: {{[0-9].*}}
21 #![allow(unused_variables)]
22 #![allow(unused_assignments)]