// RUN: %clang_cc1 -verify %s -std=c++11 -fcxx-exceptions
// Tests for parsing of type-specifier-seq
structS{operatorconstexprint();// expected-error{{type name does not allow constexpr}}
};enumE{ e };voidf(){try{(void)newconstexprint;// expected-error{{type name does not allow constexpr}}
}catch(constexprint){// expected-error{{type name does not allow constexpr}}
}// These parse as type definitions, not as type references with braced
// initializers. Sad but true...
(void)newstructS{};// expected-error{{'S' cannot be defined in a type specifier}}
(void)newenumE{ e };// expected-error{{'E' cannot be defined in a type specifier}}
}// And for trailing-type-specifier-seq
autof()-> unknown;// expected-error{{unknown type name 'unknown'}}