summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-20 18:25:04 +0000
committerChris Lattner <sabre@nondot.org>2003-08-20 18:25:04 +0000
commite62a6faef97759b64442d0bc7e4aa8b80de16991 (patch)
tree6d808f403f1fe294a7c9dd2d259f83d34406eca8
parent986b244976ba6faf4451814505cc603651e99633 (diff)
downloadbcm5719-llvm-e62a6faef97759b64442d0bc7e4aa8b80de16991.tar.gz
bcm5719-llvm-e62a6faef97759b64442d0bc7e4aa8b80de16991.zip
Whoa, GCC accepts this. Whack.
llvm-svn: 7986
-rw-r--r--llvm/test/Regression/CFrontend/2003-08-20-PrototypeMismatch.c13
1 files changed, 13 insertions, 0 deletions
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 00000000000..b2535c7a530
--- /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);
+}
OpenPOWER on IntegriCloud