Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic-new2.C
bloba40f96e110bdb4288e2970a685ea98394ea5ad44
1 // { dg-do "run" }
2 // { dg-options "-std=c++0x" }
3 // PR c++/32597
4 #include <assert.h>
5 #include <new>
7 template< class... Args > void f( Args... args )
9   { 
10     int x = 17;
11     (void)x;
12   }
14   {
15     int y(args...);
16     assert(y == 0);
17   }
21 int main()
23    f();