Anders Carlsson | 9c4c5c8 | 2009-06-12 22:30:13 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x |
2 | |||||
Anders Carlsson | 49d2557 | 2009-06-12 23:20:15 +0000 | [diff] [blame^] | 3 | template<typename ... Args = int> struct S1 { }; // expected-error{{template parameter pack cannot have a default argument}} |
4 | template<typename ... Args, typename T> struct S2 { }; // expected-error{{template parameter pack must be the last template parameter}} |