summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr34056.C
blob: 0e5246b6ab60bbf2ffa341d3ff2d6af0a2d1ed9c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34056
// { dg-do compile }
// { dg-options "-std=c++0x" }

template<typename... T> struct A
{
  void foo (T *) { ++p; }	// { dg-error "not expanded|T" }
  void bar (T **) { }		// { dg-error "not expanded|T" }
  T *p;				// { dg-error "not expanded|T" }
};