blob: 93d49dbd6c1ff8798b876960710d91e3e80e327a (
plain)
1
2
3
4
5
6
7
8
|
// Check that we reject operator new with no argument or non-size_t first
// argument.
// { dg-do "compile" }
void* operator new(); // { dg-error "takes type .size_t." }
void* operator new(char); // { dg-error "takes type .size_t." }
void* operator new(char*); // { dg-error "takes type .size_t." }
void* operator new(char&); // { dg-error "takes type .size_t." }
|