aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic76.C
blob: d8d1ef9d4ffdeafa97e239e8aac74964c86bc004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/33496
// { dg-do compile { target c++11 } }

template<int... N> int foo ()
{
  return sizeof... (N ());	// { dg-error "" }
  return sizeof... (N) ();	// { dg-error "" }
}

int bar ()
{
  return foo<0> ();
}