OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR debug/49047
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
cond1.C
1
// Origin: jason@redhat.com
2
// { dg-do compile }
3
4
struct A { A(); A(const A&); int i; };
5
struct B: public A { };
6
7
int f (bool b, A& ar, B& br)
8
{
9
return (b?ar:br).i;
10
}