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
/
init
/
ref22.C
blob
93210ef1edfd4e0798053df1c3a4e6ebc74e09c9
1
// PR c++/57610
2
// { dg-do run }
3
4
extern "C" void abort();
5
6
struct A
7
{
8
A() { }
9
A(const A&) { abort(); }
10
};
11
12
struct B : A { };
13
14
struct X
15
{
16
operator B() { return B(); }
17
};
18
19
int main()
20
{
21
X x;
22
const A& r = x;
23
}