repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-04-07 Charles Baylis <charles.baylis@linaro.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr43784.C
blob
a83a6f374d77cbcc0a05ea8004712d76b3d320e7
1
/* { dg-do run } */
2
/* { dg-options "-fno-tree-sra" } */
3
4
struct S {int x, y, makemelarge[5];};
5
S __attribute__((noinline)) f (S &s) {
6
S r;
7
r.x = s.y;
8
r.y = s.x;
9
return r;
10
}
11
int __attribute__((noinline)) glob (int a, int b)
12
{
13
S local = { a, b };
14
local = f (local);
15
return local.y;
16
}
17
extern "C" void abort (void);
18
int main (void)
19
{
20
if (glob (1, 3) != 1)
21
abort ();
22
return 0;
23
}
24