commit | 0317ab0f54e7884b072ed359447e078d067fc9e9 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Aug 10 18:27:15 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Aug 10 18:27:15 2010 +0000 |
tree | 7b2cdfe2955607742577879ce80adf0da7be49cc | |
parent | ba551983016ee3eac5421255d2ebe6723e61befb [diff] [blame] |
Do not use DIGlobalVariable to emit debugging information for enums. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110697 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/enum2.c b/test/CodeGen/enum2.c new file mode 100644 index 0000000..3203627 --- /dev/null +++ b/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; +}