aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-17 19:31:09 +0000
committerChris Lattner <sabre@nondot.org>2008-02-17 19:31:09 +0000
commit5280408ab323a213ac63d5b557475ea5037aa553 (patch)
tree85b66eb4b7235ee0a48a5b8788d28027e8c3cb4a /test/Sema/function.c
parenta9b20e57d407dfc8bd260e6228ba40f64439869c (diff)
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
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c4
1 files changed, 4 insertions, 0 deletions
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);}
+