Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
g++.dg
/
init
/
new13.C
blob: 3563c48808fcff8ba4e42ab1aeb5c20e877ec843 [
file
] [
log
] [
blame
]
// PR c++/22508
// ICE on invalid operator new
// Origin: Flash Sheridan <flash@pobox.com>
// { dg-do compile }
struct
A
{
void
*
operator
new
(
__SIZE_TYPE__
)
throw
(
X
);
// { dg-error "" }
};
A
*
p
=
new
A
;
// { dg-error "no suitable" }