diff options
author | Anders Carlsson <andersca@mac.com> | 2008-08-23 21:12:35 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-08-23 21:12:35 +0000 |
commit | b88d45ea7eb835d36c4a4b3ea84b1260b120dd0a (patch) | |
tree | 989fa34b78ca6682b7fca604b193ce1350595673 /test/SemaCXX/bool.cpp | |
parent | 413ad8b6b55ea3ddee61a34e3a69ecd52fcaf0f5 (diff) | |
download | clang-b88d45ea7eb835d36c4a4b3ea84b1260b120dd0a.tar.gz |
treat bool literals as constatnt expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/bool.cpp')
-rw-r--r-- | test/SemaCXX/bool.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/bool.cpp b/test/SemaCXX/bool.cpp new file mode 100644 index 0000000000..e35495abab --- /dev/null +++ b/test/SemaCXX/bool.cpp @@ -0,0 +1,7 @@ +// RUN: clang -fsyntax-only -verify %s + +// Bool literals can be enum values. +enum { + ReadWrite = false, + ReadOnly = true +}; |