aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2003-08-20-PrototypeMismatch.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-20-PrototypeMismatch.c b/test/CFrontend/2003-08-20-PrototypeMismatch.c
new file mode 100644
index 0000000000..b2535c7a53
--- /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);
+}