repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
pr44182.C
blob
3e062a3fe8477d997a7fb80d6fad94c6391fb280
1
// PR tree-optimization/44182
2
// { dg-do compile }
3
// { dg-options "-fcompare-debug" }
4
5
struct S
6
{
7
int i;
8
S ();
9
~S ();
10
void f1 ();
11
void f2 (S s)
12
{
13
f3 (s.i);
14
for (int j = 0; j < s.i; j++) f1 ();
15
}
16
void f3 (int j)
17
{
18
if (j > i) f1 ();
19
}
20
};
21
22
void
23
f (S *x)
24
{
25
x->f2 (S ());
26
}