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
/
ref3.C
blob
3a5853c231887426475b95969a6fe3f83999ab05
1
// { dg-do run }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
struct B1
5
{
6
int i;
7
};
8
9
struct B2
10
{
11
int j;
12
};
13
14
struct D: public B1, B2
15
{
16
};
17
18
bool f (B2& b)
19
{
20
return b.j == 7;
21
}
22
23
int main ()
24
{
25
D d;
26
d.i = 2;
27
d.j = 7;
28
if (!f (d))
29
return 1;
30
}
31