aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/variadic76.C
blob: a9f8eabb34e42f4a9a47334aed7860931c05a2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/33496
// { dg-do compile }
// { dg-options "-std=gnu++0x" }

template<int... N> int foo ()
{
  return sizeof... N ();	// { dg-error "cannot be used as a function" }
}

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