summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/enum2.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/enum2.c')
-rw-r--r--clang/test/CodeGen/enum2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/enum2.c b/clang/test/CodeGen/enum2.c
new file mode 100644
index 0000000..3203627
--- /dev/null
+++ b/clang/test/CodeGen/enum2.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown %s -g -emit-llvm -o /dev/null
+int v;
+enum e { MAX };
+
+void foo (void)
+{
+ v = MAX;
+}