new1.C revision 1.1.1.1
1// Origin: asharji@uwaterloo.ca
2
3// { dg-do compile }
4
5typedef __SIZE_TYPE__ size_t;
6
7class bar {
8    int i;
9  public :
10    void * operator new ( size_t , void * storage );
11};
12
13class foo {
14    int storage[ 5 ];
15  public:
16    void mem ( ) {
17        bar *s = new ( ( void * ) & storage ) bar;
18    }
19};
20