Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist126.C
blob: 0a8fb998be68d16e596a7502eb8fc03f5f5e0b68 [
file
] [
log
] [
blame
]
// PR c++/102050
// { dg-do compile { target c++11 } }
#include
<initializer_list>
extern
struct
A a
;
struct
A
{
A
(
const
A
&
=
a
);
A
(
std
::
initializer_list
<int>
)
=
delete
;
};
void
f
(
A
);
int
main
()
{
f
({});
// { dg-bogus "deleted" }
}