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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-new.C
blob
869052774cf37e4f0366bc4a47d2ba59fae17aff
1
// { dg-do "run" }
2
// { dg-options "-std=c++0x" }
3
// Contributed by Peter Dimov
4
// PR c++/32597
5
#include <assert.h>
6
#include <new>
7
8
int k = 5;
9
10
template< class... Args > void f( Args... args )
11
{
12
new( &k ) int( args... );
13
}
14
15
int main()
16
{
17
f();
18
assert( k == 0 );
19
}