commit | 29a7f3342c3c6dd15d914c61ae22246c36d51ce7 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Dec 10 22:29:29 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Dec 10 22:29:29 2009 +0000 |
tree | 6860b347941546f39f15f2cd9effa7fe240d9d68 | |
parent | 548e60efea9a1d2c31679e11e9ff0d2f19b96694 [diff] [blame] |
Clean up enum constants so that they're finally sane. Fixes PR3173 and a recently introduced crash. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91070 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/enum.cpp b/test/CodeGenCXX/enum.cpp new file mode 100644 index 0000000..6ce04a3 --- /dev/null +++ b/test/CodeGenCXX/enum.cpp
@@ -0,0 +1,4 @@ +// RUN: clang-cc -emit-llvm-only -verify %s + +enum A { a } __attribute((packed)); +int func(A x) { return x==a; }