From e84a6d0e7ddb08cd484818b6d267164ad684b0e4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 20 Aug 2003 18:25:04 +0000 Subject: [PATCH] Whoa, GCC accepts this. Whack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7986 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2003-08-20-PrototypeMismatch.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CFrontend/2003-08-20-PrototypeMismatch.c diff --git a/test/CFrontend/2003-08-20-PrototypeMismatch.c b/test/CFrontend/2003-08-20-PrototypeMismatch.c new file mode 100644 index 00000000000..b2535c7a530 --- /dev/null +++ b/test/CFrontend/2003-08-20-PrototypeMismatch.c @@ -0,0 +1,13 @@ + + +static int foo(int); + +static int foo(C) +char C; +{ + return C; +} + +void test() { + foo(7); +}