From: Chris Lattner Date: Fri, 20 Feb 2004 17:32:24 +0000 (+0000) Subject: PR244: [llvm-gcc] miscompilation when a function is re-declared as static X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9d7c585982798d8b9eee81db469514db96f5df08;p=oota-llvm.git 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 --- 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 00000000000..4549300e7bc --- /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) { +}