blob: 09461c8db7cb3928d0304520982b2305ddc1c0da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Build don't link:
// GROUPS passed bad-errors
#include <stddef.h>
void * operator new(size_t, int *);
void * operator new(size_t, void *);
int *x = 0;
int foo(){
new (x) int *;
new (&x) int *;
new (x) int *; // This is identical to line 8 !!!
return 1;
}
|