1 // This tests that debug info for "c-like" enums is properly emitted.
2 // This is ignored for the fallback mode on MSVC due to problems with PDB.
4 // ignore-tidy-linelength
7 // compile-flags: -g -C no-prepopulate-passes
10 // CHECK: {{.*}}DICompositeType{{.*}}tag: DW_TAG_enumeration_type,{{.*}}name: "E",{{.*}}flags: DIFlagEnumClass,{{.*}}
11 // CHECK: {{.*}}DIEnumerator{{.*}}name: "A",{{.*}}value: {{[0-9].*}}
12 // CHECK: {{.*}}DIEnumerator{{.*}}name: "B",{{.*}}value: {{[0-9].*}}
13 // CHECK: {{.*}}DIEnumerator{{.*}}name: "C",{{.*}}value: {{[0-9].*}}
16 #![allow(unused_variables)]
17 #![allow(unused_assignments)]