Skip to content
Snippets Groups Projects
Commit 7ca14257 authored by Chris Lattner's avatar Chris Lattner
Browse files

add a silly testcase

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59877 91177308-0d34-0410-b5e6-96231b3b80d8
parent b7611f28
No related branches found
No related tags found
No related merge requests found
...@@ -33,3 +33,8 @@ void test6() { ...@@ -33,3 +33,8 @@ void test6() {
int X; int X;
X(); // expected-error {{called object type 'int' is not a function or function pointer}} 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')}}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment