repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
init
/
new1.C
blob
5015d819f7f96fbca9f049c077b258c56559bb8a
1
// Origin: asharji@uwaterloo.ca
2
3
// { dg-do compile }
4
5
typedef __SIZE_TYPE__ size_t;
6
7
class bar {
8
int i;
9
public :
10
void * operator new ( size_t , void * storage );
11
};
12
13
class foo {
14
int storage[ 5 ];
15
public:
16
void mem ( ) {
17
bar *s = new ( ( void * ) & storage ) bar;
18
}
19
};