diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-17 19:31:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-17 19:31:09 +0000 |
commit | b080ed504e0f617a9532cc37f6c4a853bd5b7996 (patch) | |
tree | dc7da794d1c550abf539e43ddae78dc79477686a /clang/test/Parser/implicit-casts.c | |
parent | ffd09922478f4bbda0d952ef9f5dd79dee145a44 (diff) | |
download | bcm5719-llvm-b080ed504e0f617a9532cc37f6c4a853bd5b7996.tar.gz bcm5719-llvm-b080ed504e0f617a9532cc37f6c4a853bd5b7996.zip |
Fix PR2042. One remaining issue: we don't currently diagnose
int foobar(int);
int foobar() {}
which requires ifdef'ing out a testcase in predefined-function.c.
llvm-svn: 47236
Diffstat (limited to 'clang/test/Parser/implicit-casts.c')
-rw-r--r-- | clang/test/Parser/implicit-casts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/implicit-casts.c b/clang/test/Parser/implicit-casts.c index 1636f4993e4..2e8e0001822 100644 --- a/clang/test/Parser/implicit-casts.c +++ b/clang/test/Parser/implicit-casts.c @@ -14,7 +14,7 @@ void test2() { } int test3() { int a[2]; - a[0] = test3; // expected-warning{{incompatible pointer to integer conversion assigning 'int (void)', expected 'int'}} + a[0] = test3; // expected-warning{{incompatible pointer to integer conversion assigning 'int ()', expected 'int'}} } short x; void test4(char c) { x += c; } int y; void test5(char c) { y += c; } |