1 // Origin: asharji@uwaterloo.ca 2 3 // { dg-do compile } 4 5 class bar { 6 public : bar()7 bar() { } new(__SIZE_TYPE__,void * storage)8 void * operator new ( __SIZE_TYPE__ , void * storage ) 9 { return (void *)1;} 10 }; 11 12 class foo { 13 public: mem()14 void mem ( ) { 15 new ( 0 ) bar; 16 } 17 }; 18