aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Sema/exprs.c5
1 files changed, 5 insertions, 0 deletions
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')}}
+}
+