Whoa, GCC accepts this. Whack.
authorChris Lattner <sabre@nondot.org>
Wed, 20 Aug 2003 18:25:04 +0000 (18:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Aug 2003 18:25:04 +0000 (18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7986 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2003-08-20-PrototypeMismatch.c [new file with mode: 0644]

diff --git a/test/CFrontend/2003-08-20-PrototypeMismatch.c b/test/CFrontend/2003-08-20-PrototypeMismatch.c
new file mode 100644 (file)
index 0000000..b2535c7
--- /dev/null
@@ -0,0 +1,13 @@
+
+
+static int foo(int);
+
+static int foo(C)
+char C;
+{
+  return C;
+}
+
+void test() {
+  foo(7);
+}