OSDN Git Service

Revert the accidental checkin in revision 158918.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / new2.C
1 // Origin: asharji@uwaterloo.ca
2
3 // { dg-do compile }
4
5 class bar {
6   public :
7     bar() { }
8     void * operator new ( __SIZE_TYPE__ , void * storage ) 
9      { return (void *)1;}
10 };
11
12 class foo {
13   public:
14     void mem ( ) {
15         new ( 0 ) bar;
16     }
17 };