aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/variadic-new2.C
blob: 81d333398bdcd8e9901337cf3ea691a2b2360304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do run }
// { dg-options "-std=c++0x" }
// PR c++/32597
#include <assert.h>
#include <new>

template< class... Args > void f( Args... args )
{
  { 
    int x = 17;
    (void)x;
  }

  {
    int y(args...);
    assert(y == 0);
  }

}

int main()
{
   f();
}