// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fcxx-exceptions -fexceptions -verify %s
// When it is part of a parameter-declaration-clause, the parameter
// pack is a function parameter pack.
void ;
void ;
// [ Note: Otherwise, the parameter-declaration is part of a
// template-parameter-list and the parameter pack is a template
// parameter pack; see 14.1. -- end note ]
;
;
// A declarator-id or abstract-declarator containing an ellipsis shall
// only be used in a parameter-declaration.
int ; // expected-error{{only function and template parameters can be parameter packs}}
void
;
// The type T of the declarator-id of the function parameter pack
// shall contain a template parameter pack; each template parameter
// pack in T is expanded by the function parameter pack.
void ; // expected-error{{type 'T' of function parameter pack does not contain any unexpanded parameter packs}}
void ; // expected-error{{type 'int' of function parameter pack does not contain any unexpanded parameter packs}}
void ;
void // expected-error{{unknown type name 'unk'}}
void // expected-error{{'auto' not allowed in function return type}}
void