Debian Codegraph @

gcc/testsuite/g++.dg/init/new2.C

raw
1 // Origin: [email protected]
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 };