forked from OSchip/llvm-project
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. llvm-svn: 46492
This commit is contained in:
parent
75bc4cd620
commit
aaaeee2ac0
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue