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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr71210-2.C
blob
02a31bd5fe8087995ba99c04f753cd944bd596b9
1
// PR c++/71210
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct C { int a; int b; C (); ~C (); };
6
7
namespace
8
{
9
struct A
10
{
11
A () {}
12
virtual C bar (int) = 0;
13
C baz (int x) { return bar (x); }
14
};
15
}
16
17
A *a;
18
19
void
20
foo ()
21
{
22
C c = a->baz (0);
23
}