]> granicus.if.org Git - clang/commitdiff
Add missing test case for operator ! result type.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 19 Jan 2009 21:37:51 +0000 (21:37 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 19 Jan 2009 21:37:51 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62532 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/expressions.cpp [new file with mode: 0644]

diff --git a/test/SemaCXX/expressions.cpp b/test/SemaCXX/expressions.cpp
new file mode 100644 (file)
index 0000000..23983a1
--- /dev/null
@@ -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);
+}