forked from OSchip/llvm-project
11 lines
419 B
C++
11 lines
419 B
C++
|
// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
|
||
|
|
||
|
// A default template-argument may be specified for any kind of
|
||
|
// template-parameter that is not a template parameter pack.
|
||
|
template<typename ...Types = int> // expected-error{{template parameter pack cannot have a default argument}}
|
||
|
struct X0;
|
||
|
|
||
|
template<int ...Values = 0> // expected-error{{template parameter pack cannot have a default argument}}
|
||
|
struct X1;
|
||
|
|