repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/37276
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
new13.C
blob
2ced6e3fe020107f5a111b9c5a792fa083b816e0
1
// PR c++/22508
2
// ICE on invalid operator new
3
// Origin: Flash Sheridan <flash@pobox.com>
4
// { dg-do compile }
5
6
struct A
7
{
8
void* operator new(__SIZE_TYPE__) throw(X); // { dg-error "expected|type" }
9
};
10
11
A* p = new A;