diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-19 21:37:51 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-19 21:37:51 +0000 |
commit | 95389dd07343c0b17612329ac1e586776eb13ecf (patch) | |
tree | 606d79559be68a7e386679864c86d358a38b8201 | |
parent | 8aa5920ece1de1a8723cf2bfa2d70f8a1211a62c (diff) |
Add missing test case for operator ! result type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62532 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/expressions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/expressions.cpp b/test/SemaCXX/expressions.cpp new file mode 100644 index 0000000000..23983a1dbd --- /dev/null +++ b/test/SemaCXX/expressions.cpp @@ -0,0 +1,9 @@ +// RUN: clang -fsyntax-only -verify %s + +void choice(int); +int choice(bool); + +void test() { + // Result of ! must be type bool. + int i = choice(!1); +} |