OSDN Git Service

After recent changes we fail to optimize this test
authorDuncan Sands <baldrick@free.fr>
Tue, 29 Jan 2008 05:57:23 +0000 (05:57 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 29 Jan 2008 05:57:23 +0000 (05:57 +0000)
sufficiently to have it pass.  I'm removing it from
the testsuite and adding it to PR452 instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46492 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2008-01-26-ReadOnlyByVal.c [deleted file]

diff --git a/test/CFrontend/2008-01-26-ReadOnlyByVal.c b/test/CFrontend/2008-01-26-ReadOnlyByVal.c
deleted file mode 100644 (file)
index 8e9f6a2..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %llvmgcc %s -S -O1 -o - | llvm-as | opt -std-compile-opts | llvm-dis | not grep add
-
-struct S { int A; int B; char C[1000]; };
-
-int f(struct S x) __attribute__ ((const));
-
-static int __attribute__ ((const)) g(struct S x) {
-       x.A = x.B;
-       return f(x);
-}
-
-int h(void) {
-       struct S x;
-       int r;
-       x.A = 0;
-       x.B = 9;
-       r = g(x);
-       return r + x.A;
-}