From e62a6faef97759b64442d0bc7e4aa8b80de16991 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. llvm-svn: 7986 --- .../CFrontend/2003-08-20-PrototypeMismatch.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 llvm/test/Regression/CFrontend/2003-08-20-PrototypeMismatch.c diff --git a/llvm/test/Regression/CFrontend/2003-08-20-PrototypeMismatch.c b/llvm/test/Regression/CFrontend/2003-08-20-PrototypeMismatch.c new file mode 100644 index 000000000000..b2535c7a5308 --- /dev/null +++ b/llvm/test/Regression/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); +}