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
2013-05-29 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
inline12.C
blob
d9eae306dc50d65007bf728632125e287b6962cf
1
// PR tree-optimization/33458
2
// { dg-do compile }
3
// { dg-options "-O" }
4
5
inline void
6
foo (int *p, int n)
7
{
8
for (; n > 0; --n, ++p)
9
*p = 0;
10
}
11
12
struct A
13
{
14
int x[2];
15
A () { foo (x, 2); }
16
};
17
18
inline A
19
getA ()
20
{
21
return A ();
22
}
23
24
struct B
25
{
26
A a;
27
B ();
28
};
29
30
B::B () : a (getA ())
31
{
32
}