aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2003-08-20-PrototypeMismatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2003-08-20-PrototypeMismatch.c')
-rw-r--r--test/CodeGen/2003-08-20-PrototypeMismatch.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/2003-08-20-PrototypeMismatch.c b/test/CodeGen/2003-08-20-PrototypeMismatch.c
new file mode 100644
index 000000000000..fa42ca581a0a
--- /dev/null
+++ b/test/CodeGen/2003-08-20-PrototypeMismatch.c
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+
+
+
+static int foo(int);
+
+static int foo(C)
+char C;
+{
+ return C;
+}
+
+void test() {
+ foo(7);
+}