aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2004-02-20-StaticRedeclare.c.tr
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-20 17:32:24 +0000
committerChris Lattner <sabre@nondot.org>2004-02-20 17:32:24 +0000
commit9d7c585982798d8b9eee81db469514db96f5df08 (patch)
tree51e618ee4712cb0879f92ade2bb1e93eaab43395 /test/CFrontend/2004-02-20-StaticRedeclare.c.tr
parent22f7646d5e945593710b6c2aae5fa3c68f591a0e (diff)
downloadexternal_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.tr9
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) {
+}