clang/test/SemaObjCXX/ivar-struct.mm
raw| 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 | |
| 9 | static const uint32_t Count = 16; // expected-error {{unknown type name 'uint32_t'}} |
| 10 | |
| 11 | struct S0 { |
| 12 | S0(); |
| 13 | }; |
| 14 | |
| 15 | @interface C0 |
| 16 | @end |
| 17 | |
| 18 | @implementation C0 { |
| 19 | S0 ivar0[Count]; |
| 20 | } |
| 21 | @end |