2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-new.C
blobaf7c86fca1eb9405f121949fa9cd00804dded11d
1 // { dg-do run { target c++11 } }
2 // Contributed by Peter Dimov
3 // PR c++/32597
4 #include <assert.h>
5 #include <new>
7 int k = 5;
9 template< class... Args > void f( Args... args )
11    new( &k ) int( args... );
14 int main()
16    f();
17    assert( k == 0 );