Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}