From: Sebastian Redl Date: Mon, 19 Jan 2009 21:37:51 +0000 (+0000) Subject: Add missing test case for operator ! result type. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95389dd07343c0b17612329ac1e586776eb13ecf;p=clang 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 --- 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); +}