1 // RUN: %clang_cc1 -fobjc-runtime=gcc -frecovery-ast -verify %s
5 int Foo : foo(); // expected-error {{use of undeclared identifier}}
9 struct X { int Y: foo(); }; // expected-error {{use of undeclared identifier}}
11 constexpr int s = sizeof(Ivar);
12 constexpr int ss = sizeof(X);
15 return undef(); // expected-error {{use of undeclared identifier}}
20 constexpr int sss = sizeof(Y);
22 bool Foo(int *); // expected-note {{candidate function not viable}}
27 // error-bit should be propagated from TemplateArgument to NestNameSpecifier.
28 class Base<decltype(Foo(T()))>::type C; // expected-error {{no matching function for call to 'Foo'}}
32 int X : func<int>(); // expected-note {{in instantiation of function template}}
34 constexpr int ssss = sizeof(Z);
37 int X : sizeof(_BitInt(invalid())); // expected-error {{use of undeclared identifier}}
39 constexpr int sssss = sizeof(Z2);