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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-new.C
blob
af7c86fca1eb9405f121949fa9cd00804dded11d
1
// { dg-do run { target c++11 } }
2
// Contributed by Peter Dimov
3
// PR c++/32597
4
#include <assert.h>
5
#include <new>
6
7
int k = 5;
8
9
template< class... Args > void f( Args... args )
10
{
11
new( &k ) int( args... );
12
}
13
14
int main()
15
{
16
f();
17
assert( k == 0 );
18
}