repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
new2.C
blob
8b207d0a0337c78701dc91cc7e896ee8daaeba15
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
};