summaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-enum.c
blob: 4474e4000e95a731f12cb0050b3819599f0c5ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s

// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "e"
// CHECK-SAME:             elements: [[TEST3_ENUMS:![0-9]*]]
// CHECK: [[TEST3_ENUMS]] = !{[[TEST3_E:![0-9]*]]}
// CHECK: [[TEST3_E]] = !DIEnumerator(name: "E", value: -1)

enum e;
void func(enum e *p) {
}
enum e { E = -1 };