summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new13.C
blob: 3563c48808fcff8ba4e42ab1aeb5c20e877ec843 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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" }