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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr59622-2.C
blob
8096eebca40b747a0e0b5ffc814ebda84fdbd752
1
// PR tree-optimization/59622
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
namespace
6
{
7
struct A
8
{
9
A () {}
10
virtual A *bar (int) = 0;
11
A *baz (int x) { return bar (x); }
12
};
13
}
14
15
A *a;
16
17
void
18
foo ()
19
{
20
a->baz (0);
21
}