FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / bad-error4.C
blob09461c8db7cb3928d0304520982b2305ddc1c0da
1 // Build don't link: 
2 // GROUPS passed bad-errors
3 #include <stddef.h>
5 void * operator new(size_t, int *);
6 void * operator new(size_t, void *);
8 int *x = 0;
9 int foo(){
10 new (x) int *;
11 new (&x) int *;
12 new (x) int *;  // This is identical to line 8 !!!
13 return 1;