diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-20 17:32:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-20 17:32:24 +0000 |
commit | 9d7c585982798d8b9eee81db469514db96f5df08 (patch) | |
tree | 51e618ee4712cb0879f92ade2bb1e93eaab43395 /test/CFrontend/2004-02-20-StaticRedeclare.c.tr | |
parent | 22f7646d5e945593710b6c2aae5fa3c68f591a0e (diff) | |
download | external_llvm-9d7c585982798d8b9eee81db469514db96f5df08.zip external_llvm-9d7c585982798d8b9eee81db469514db96f5df08.tar.gz external_llvm-9d7c585982798d8b9eee81db469514db96f5df08.tar.bz2 |
PR244: [llvm-gcc] miscompilation when a function is re-declared as static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend/2004-02-20-StaticRedeclare.c.tr')
-rw-r--r-- | test/CFrontend/2004-02-20-StaticRedeclare.c.tr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CFrontend/2004-02-20-StaticRedeclare.c.tr b/test/CFrontend/2004-02-20-StaticRedeclare.c.tr new file mode 100644 index 0000000..4549300 --- /dev/null +++ b/test/CFrontend/2004-02-20-StaticRedeclare.c.tr @@ -0,0 +1,9 @@ +// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep declare + +int one (int a) { + two (a, 5); + return 0; +} + +static int two (int a, int b) { +} |