[cfe-commits] r59877 - /cfe/trunk/test/Sema/exprs.c
Chris Lattner
sabre at nondot.org
Sat Nov 22 11:57:03 PST 2008
Author: lattner
Date: Sat Nov 22 13:57:03 2008
New Revision: 59877
URL: http://llvm.org/viewvc/llvm-project?rev=59877&view=rev
Log:
add a silly testcase
Modified:
cfe/trunk/test/Sema/exprs.c
Modified: cfe/trunk/test/Sema/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/exprs.c?rev=59877&r1=59876&r2=59877&view=diff
==============================================================================
--- cfe/trunk/test/Sema/exprs.c (original)
+++ cfe/trunk/test/Sema/exprs.c Sat Nov 22 13:57:03 2008
@@ -33,3 +33,8 @@
int X;
X(); // expected-error {{called object type 'int' is not a function or function pointer}}
}
+
+void test7(int *P, _Complex float Gamma) {
+ P = (P-42) + Gamma*4; // expected-error {{invalid operands to binary expression ('int *' and '_Complex float')}}
+}
+
More information about the cfe-commits
mailing list