From 5280408ab323a213ac63d5b557475ea5037aa553 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 17 Feb 2008 19:31:09 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47236 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/function.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/Sema/function.c') diff --git a/test/Sema/function.c b/test/Sema/function.c index 8ef453581f..2a18dbb705 100644 --- a/test/Sema/function.c +++ b/test/Sema/function.c @@ -25,3 +25,7 @@ int t8(, int a); // expected-error {{expected parameter declarator}} int t9(int a, ); // expected-error {{expected parameter declarator}} +// PR2042 +void t10(){} +void t11(){t10(1);} + -- cgit v1.2.3-18-g5258