2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / new1.C
blob5015d819f7f96fbca9f049c077b258c56559bb8a
1 // Origin: asharji@uwaterloo.ca
3 // { dg-do compile }
5 typedef __SIZE_TYPE__ size_t;
7 class bar {
8     int i;
9   public :
10     void * operator new ( size_t , void * storage );
13 class foo {
14     int storage[ 5 ];
15   public:
16     void mem ( ) {
17         bar *s = new ( ( void * ) & storage ) bar;
18     }