Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic-new2.C

raw
1 // { dg-do run { target c++11 } }
2 // PR c++/32597
3 #include <assert.h>
4 #include <new>
5
6 template< class... Args > void f( Args... args )
7 {
8 {
9 int x = 17;
10 (void)x;
11 }
12
13 {
14 int y(args...);
15 assert(y == 0);
16 }
17
18 }
19
20 int main()
21 {
22 f();
23 }