diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-20 18:25:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-20 18:25:04 +0000 |
commit | e84a6d0e7ddb08cd484818b6d267164ad684b0e4 (patch) | |
tree | 387453524dd76bacf5a5f1379211499c1a508f03 /test | |
parent | 0dac47a5516fd5e515200df891505559b2ee0b09 (diff) | |
download | llvm-e84a6d0e7ddb08cd484818b6d267164ad684b0e4.tar.gz llvm-e84a6d0e7ddb08cd484818b6d267164ad684b0e4.tar.bz2 llvm-e84a6d0e7ddb08cd484818b6d267164ad684b0e4.tar.xz |
Whoa, GCC accepts this. Whack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CFrontend/2003-08-20-PrototypeMismatch.c | 13 |
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); +} |