commit | 0e4755da265a5595eea3278b4a85399b862a8142 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Dec 02 06:27:33 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Dec 02 06:27:33 2007 +0000 |
tree | 8a83e3f528311dca7d67671fc226e211e54f7c42 | |
parent | 2568ae4a5798ba592f863eee1e2ee5b56a6b8cdc [diff] [blame] |
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); +} +