clang/test/SemaObjCXX/ivar-reference-type.mm

6 строки
145 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface A {
int &r; // expected-error {{instance variables cannot be of reference type}}
}
@end