diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-23 22:07:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-23 22:07:25 +0000 |
commit | 41c2097058e61918f2cc3e5979302507c6f87184 (patch) | |
tree | f0eca0b403e418f74a09eca29497edccf53c1b44 /clang/test/CodeGen/debug-info-enum.c | |
parent | ce0e85680959942183f8f9d191c0ca8a6ae54fd8 (diff) | |
download | bcm5719-llvm-41c2097058e61918f2cc3e5979302507c6f87184.tar.gz bcm5719-llvm-41c2097058e61918f2cc3e5979302507c6f87184.zip |
Emit debug info for enum constants.
llvm-svn: 111852
Diffstat (limited to 'clang/test/CodeGen/debug-info-enum.c')
-rw-r--r-- | clang/test/CodeGen/debug-info-enum.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-enum.c b/clang/test/CodeGen/debug-info-enum.c new file mode 100644 index 00000000000..b4a1ce0d3a2 --- /dev/null +++ b/clang/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; +} |