diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-31 22:24:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-31 22:24:06 +0000 |
commit | 8697d308c1bdd50e5c45757ac11be701c26e9e97 (patch) | |
tree | 59afd9cf6f5b60347b1c2886b66bd4d0e1d28162 /test/SemaObjC/default-synthesize-1.m | |
parent | e082af17d4b425a49f7f8bccc2a99810f0072828 (diff) |
objective-c: this patch (re)introduces objective-c's default property
synthesis. This new feature is currently placed under
-fobjc-default-synthesize-properties option
and is off by default pending further testing.
It will become the default feature soon.
// rdar://8843851
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/default-synthesize-1.m')
-rw-r--r-- | test/SemaObjC/default-synthesize-1.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/SemaObjC/default-synthesize-1.m b/test/SemaObjC/default-synthesize-1.m index a55834dd30..3a27a1d9c7 100644 --- a/test/SemaObjC/default-synthesize-1.m +++ b/test/SemaObjC/default-synthesize-1.m @@ -68,19 +68,19 @@ //@synthesize howMany, what; // REM: Redundant anyway - (int) howMany { - return howMany; + return howMany; // expected-error {{use of undeclared identifier 'howMany'}} } - (void) setHowMany: (int) value { - howMany = value; + howMany = value; // expected-error {{use of undeclared identifier 'howMany'}} } - (NSString*) what { - return what; + return what; // expected-error {{use of undeclared identifier 'what'}} } - (void) setWhat: (NSString*) value { - if (what != value) { - [what release]; - what = [value retain]; + if (what != value) { // expected-error {{use of undeclared identifier 'what'}} + [what release]; // expected-error {{use of undeclared identifier 'what'}} + what = [value retain]; // expected-error {{use of undeclared identifier 'what'}} } } @end |