10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify2template <typename A, decltype(new A)>3struct b;4struct d {5 static auto c = ; // expected-error{{expected expression}}6 // expected-error@-1 {{declaration of variable 'c' with deduced type 'auto' requires an initializer}}7 8 decltype(b<decltype(c), int>); // expected-error{{expected '(' for function-style cast or type construction}}9};10