implement codegen for functions whose function body type don't match
their prototype.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44506 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/functions.c b/test/CodeGen/functions.c
new file mode 100644
index 0000000..09cb978
--- /dev/null
+++ b/test/CodeGen/functions.c
@@ -0,0 +1,11 @@
+// RUN: clang %s -emit-llvm
+int g();
+
+int foo(int i) {
+	return g(i);
+}
+
+int g(int i) {
+	return g(i);
+}
+