aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-enum.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-08-23 22:07:25 +0000
committerDevang Patel <dpatel@apple.com>2010-08-23 22:07:25 +0000
commit6237cea785144d4cdbe2a5e722788e0b4b9b30f9 (patch)
treea38aee364b68c251233fecdf73115c7b2c9386f2 /test/CodeGen/debug-info-enum.c
parentaa5f77b2c914b68e6a3737c93db3598907bc64ab (diff)
Emit debug info for enum constants.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-enum.c')
-rw-r--r--test/CodeGen/debug-info-enum.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-enum.c b/test/CodeGen/debug-info-enum.c
new file mode 100644
index 0000000000..b4a1ce0d3a
--- /dev/null
+++ b/test/CodeGen/debug-info-enum.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -emit-llvm -g %s -o %t
+// RUN: grep DW_TAG_enumeration_type %t
+// Radar 8195980
+
+enum vtag {
+ VT_ONE
+};
+
+int foo(int i) {
+ return i == VT_ONE;
+}