aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-enum.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-08-10 20:01:51 +0000
committerDevang Patel <dpatel@apple.com>2010-08-10 20:01:51 +0000
commit6a9bb30819628f312a3d99f67221f7e796a38e83 (patch)
treef61ef432c30e463e471707e94a834d485d9c4973 /test/CodeGenCXX/debug-info-enum.cpp
parent74dc588d62b6d905fcf66a93fd2b4193d9226066 (diff)
Test case for llvm r110712.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-enum.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-enum.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-enum.cpp b/test/CodeGenCXX/debug-info-enum.cpp
new file mode 100644
index 0000000000..c08fc35af5
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-enum.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang -fverbose-asm -S -g %s -o - | grep DW_TAG_enumeration_type
+
+int v;
+enum index { MAX };
+void foo(void)
+{
+ v = MAX;
+}