bolt/deps/llvm-18.1.8/clang/test/SemaObjC/rdr-6211479-array-property.m

8 lines
191 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
typedef int T[2];
@interface A
@property(assign) T p2; // expected-error {{property cannot have array or function type 'T' (aka 'int[2]')}}
@end