summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjCXX/ivar-reference-type.mm
blob: 2b5df453e0e4b6dbe1171c1e37f3758e08fd4281 (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface A {
  int &r; // expected-error {{instance variables cannot be of reference type}}
}
@end