Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
deleted1.C
blob: 0a632bfb30b707d21c88981e2703f62dc0e949bf [
file
] [
log
] [
blame
]
// PR c++/58581
// { dg-do compile { target c++11 } }
template
<
typename
T
>
int
foo
(
T
)
noexcept
(
T
())
=
delete
;
int
i
=
foo
(
0
);
// { dg-error "deleted" }