summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/variadic-class-template-1.cpp
blob: 6da64fb55f7037f4e6471adde165b34e7beb1d1d (plain)
1
2
3
4
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x

template<typename ... Args = int> struct S1 { }; // expected-error{{template parameter pack cannot have a default argument}}
template<typename ... Args, typename T> struct S2 { }; // expected-error{{template parameter pack must be the last template parameter}}
OpenPOWER on IntegriCloud