xref: /llvm-project/clang/test/SemaObjCXX/ivar-struct.mm (revision 1925c7aa373e6e36a955888f98037253acf6097e)
1// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
2@interface A {
3  struct X {
4    int x, y;
5  } X;
6}
7@end
8
9static const uint32_t Count = 16; // expected-error {{unknown type name 'uint32_t'}}
10
11struct S0 {
12  S0();
13};
14
15@interface C0
16@end
17
18@implementation C0 {
19  S0 ivar0[Count];
20}
21@end
22