summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/new13.C
blob: 2ced6e3fe020107f5a111b9c5a792fa083b816e0 (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 "expected|type" }
};

A* p = new A;