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++.old-deja
/
g++.other
/
virtual2.C
blob
c93b89f44c01beeb0654dd72077881363b59311c
1
// { dg-do run }
2
struct B
3
{
4
virtual int f() volatile
5
{ return 0; }
6
};
7
8
9
struct D : public B
10
{
11
virtual int f()
12
{ return 1; }
13
};
14
15
int main()
16
{
17
volatile D d;
18
volatile B& b = d;
19
return b.f();
20
}