diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-22 19:57:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 19:57:03 +0000 |
commit | 7ca14257731eedb4cd16104cc20a6813d2deb0db (patch) | |
tree | 520e1b703faf0fe046a05362a4d46dc062f88b71 /test/Sema/exprs.c | |
parent | b7611f2812f4991caf02428a910c9b437d4dc0e8 (diff) |
add a silly testcase
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/exprs.c')
-rw-r--r-- | test/Sema/exprs.c | 5 |
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')}} +} + |