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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
pr46338.C
blob
7e242b9bc3dddea258ec6d529eff63195e7ad8b5
1
// PR debug/46338
2
// { dg-do compile }
3
// { dg-require-profiling "-fprofile-generate" }
4
// { dg-options "-O -fprofile-generate -fcompare-debug" }
5
6
void bar ();
7
8
struct S
9
{
10
int f ()
11
{
12
return 0;
13
}
14
};
15
16
S *s;
17
18
void
19
foo (int x)
20
{
21
if (x)
22
return;
23
bar ();
24
for (int j = 0; j < s->f (); j++)
25
;
26
}