diff options
Diffstat (limited to 'test/FixIt/fixit-objc.m')
| -rw-r--r-- | test/FixIt/fixit-objc.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FixIt/fixit-objc.m b/test/FixIt/fixit-objc.m index f41f75f1d7be..3e9ff605233b 100644 --- a/test/FixIt/fixit-objc.m +++ b/test/FixIt/fixit-objc.m @@ -67,3 +67,11 @@ void sentinel_test(Sentinel *a) { sentinel(1, 2, 3); // expected-warning{{missing sentinel in function call}} [a sentinel:1, 2, 3]; // expected-warning{{missing sentinel in method dispatch}} } + +@interface A +@property (class) int c; +@end + +int test(A *a) { + return a.c; // expected-error {{property 'c' is a class property; did you mean to access it with class 'A'}} +} |
