PR244: [llvm-gcc] miscompilation when a function is re-declared as static
authorChris Lattner <sabre@nondot.org>
Fri, 20 Feb 2004 17:32:24 +0000 (17:32 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Feb 2004 17:32:24 +0000 (17:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11661 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2004-02-20-StaticRedeclare.c.tr [new file with mode: 0644]

diff --git a/test/CFrontend/2004-02-20-StaticRedeclare.c.tr b/test/CFrontend/2004-02-20-StaticRedeclare.c.tr
new file mode 100644 (file)
index 0000000..4549300
--- /dev/null
@@ -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) {
+}