diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-10 22:29:29 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-10 22:29:29 +0000 |
commit | 29a7f3342c3c6dd15d914c61ae22246c36d51ce7 (patch) | |
tree | 6860b347941546f39f15f2cd9effa7fe240d9d68 /test/CodeGenCXX/enum.cpp | |
parent | 548e60efea9a1d2c31679e11e9ff0d2f19b96694 (diff) |
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
Diffstat (limited to 'test/CodeGenCXX/enum.cpp')
-rw-r--r-- | test/CodeGenCXX/enum.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGenCXX/enum.cpp b/test/CodeGenCXX/enum.cpp new file mode 100644 index 0000000000..6ce04a3a53 --- /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; } |