From: Chris Lattner Date: Sat, 22 Nov 2008 19:57:03 +0000 (+0000) Subject: add a silly testcase X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ca14257731eedb4cd16104cc20a6813d2deb0db;p=clang add a silly testcase git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59877 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c index 66806dba65..db252b8d9d 100644 --- a/test/Sema/exprs.c +++ b/test/Sema/exprs.c @@ -33,3 +33,8 @@ void test6() { 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')}} +} +