llvm-project/clang/test/Sema/invalid-bitwidth-expr.mm

21 lines
453 B
Plaintext

// RUN: %clang_cc1 -fobjc-runtime=gcc -frecovery-ast -verify %s
@interface Ivar
{
int Foo : foo(); // expected-error {{use of undeclared identifier}}
};
@end
struct X { int Y: foo(); }; // expected-error {{use of undeclared identifier}}
constexpr int s = sizeof(Ivar);
constexpr int ss = sizeof(X);
auto func() {
return undef(); // expected-error {{use of undeclared identifier}}
}
struct Y {
int X : func();
};
constexpr int sss = sizeof(Y);