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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gcov
/
gcov-6.C
blob
53a2b20bfd5370badfcd9d3bef3fad0337f15e6d
1
// PR gcov-profile/34609
2
// { dg-do compile }
3
// { dg-options "-O -ftest-coverage" }
4
5
struct A
6
{
7
int i;
8
int &get () { return i; }
9
};
10
11
inline A foo ()
12
{
13
A a;
14
a.get ();
15
return a;
16
}
17
18
inline A bar ()
19
{
20
return foo ();
21
}
22
23
void baz ()
24
{
25
A a;
26
a = bar ();
27
}
28
29
// { dg-final { cleanup-coverage-files } }