[llvm-commits] [llvm] r46492 - /llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c
Duncan Sands
baldrick at free.fr
Mon Jan 28 21:57:23 PST 2008
Author: baldrick
Date: Mon Jan 28 23:57:23 2008
New Revision: 46492
URL: http://llvm.org/viewvc/llvm-project?rev=46492&view=rev
Log:
After recent changes we fail to optimize this test
sufficiently to have it pass. I'm removing it from
the testsuite and adding it to PR452 instead.
Removed:
llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c
Removed: llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c?rev=46491&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c (original)
+++ llvm/trunk/test/CFrontend/2008-01-26-ReadOnlyByVal.c (removed)
@@ -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;
-}
More information about the llvm-commits
mailing list