aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-new2.C
blob: 413e0701d7ae0bd610875852dc96a8e031271cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do run { target c++11 } }
// 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();
}