commit | ed6c2140bcf507dd0aec6a44af101af6f098d9c3 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sat Aug 23 21:12:35 2008 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sat Aug 23 21:12:35 2008 +0000 |
tree | 989fa34b78ca6682b7fca604b193ce1350595673 | |
parent | af1864bed849b6ff59dfc9eedc69b41ef9aaf301 [diff] [blame] |
treat bool literals as constatnt expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55255 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/bool.cpp b/test/SemaCXX/bool.cpp new file mode 100644 index 0000000..e35495a --- /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 +};