Akira Hatanaka 1925c7aa37
Mark an ObjCIvarDecl as invalid if its type contains errors (#68001)
This fixes an assertion failure in InitializationSequence::Perform.
2023-10-02 12:46:00 -07:00

22 lines
299 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
@interface A {
struct X {
int x, y;
} X;
}
@end
static const uint32_t Count = 16; // expected-error {{unknown type name 'uint32_t'}}
struct S0 {
S0();
};
@interface C0
@end
@implementation C0 {
S0 ivar0[Count];
}
@end