blob: 9a6e0514ff45f0433aa004011ed54eb847ba764a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Build don't link:
typedef __SIZE_TYPE__ size_t;
void *operator new(size_t, unsigned int);
struct X{
X();
X(int);
};
void f(X *x = new X); // ERROR -
void f(X *x = new X(4)); // ERROR -
void f(X *x = new X[4]); // ERROR -
void f(X *x = new (3) X(6)); // ERROR -
void f(X *x = new (2) X[10]); // ERROR -
void f(X *x = new X[10][5]); // ERROR -
|