diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:27:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:27:33 +0000 |
commit | 58c3f9ec11cbe852a518bf2f83af46f938b7b852 (patch) | |
tree | 8a83e3f528311dca7d67671fc226e211e54f7c42 /test/CodeGen/functions.c | |
parent | 028380e5a61725c996a62554495d5c91d6eba415 (diff) |
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
Diffstat (limited to 'test/CodeGen/functions.c')
-rw-r--r-- | test/CodeGen/functions.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/functions.c b/test/CodeGen/functions.c new file mode 100644 index 0000000000..09cb9786da --- /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); +} + |