diff options
Diffstat (limited to 'test/FixIt/typo.m')
-rw-r--r-- | test/FixIt/typo.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/FixIt/typo.m b/test/FixIt/typo.m index 7197bc7..6853ab6 100644 --- a/test/FixIt/typo.m +++ b/test/FixIt/typo.m @@ -24,7 +24,8 @@ void test() { int his_ivar; // expected-note 2{{'his_ivar' declared here}} float wibble; } - +- (void)methodA; ++ (void)methodA; @property int his_prop; // expected-note{{'his_prop' declared here}} @end @@ -40,6 +41,8 @@ void test() { @implementation A @synthesize his_prop = his_ivar; +- (void)methodA { } ++ (void)methodA { } @end @implementation B @@ -145,4 +148,9 @@ double *isupper(int); @end #endif +void f(A *a) { + f(a) // expected-error{{expected ';' after expression}} + [a methodA] // expected-error{{expected ';' after expression}} + [A methodA] // expected-error{{expected ';' after expression}} +} |