commit | 036094b45f36bb70daa22c558defaf3378b24da0 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Nov 21 18:27:34 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Nov 21 18:27:34 2008 +0000 |
tree | db8961041c46e00618325930da305283e87b9bf4 | |
parent | 08c06f44835ffb5984118e7620e595b12412b31d [diff] [blame] |
print a type in a diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59829 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c index 8c8adc6..66806db 100644 --- a/test/Sema/exprs.c +++ b/test/Sema/exprs.c
@@ -29,3 +29,7 @@ (float*)X = P; // expected-error {{assignment to cast is illegal, lvalue casts are not supported}} } +void test6() { + int X; + X(); // expected-error {{called object type 'int' is not a function or function pointer}} +}