diff options
Diffstat (limited to 'test/SemaObjCXX/ivar-reference-type.mm')
-rw-r--r-- | test/SemaObjCXX/ivar-reference-type.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaObjCXX/ivar-reference-type.mm b/test/SemaObjCXX/ivar-reference-type.mm new file mode 100644 index 0000000..2b5df45 --- /dev/null +++ b/test/SemaObjCXX/ivar-reference-type.mm @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +@interface A { + int &r; // expected-error {{instance variables cannot be of reference type}} +} +@end |