2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / bad-error4.C
blob74626f71349b841b55a1f88f5499dd857647400b
1 // { dg-do assemble  }
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;