aboutsummaryrefslogtreecommitdiff
path: root/test/Parser
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
commit2c56c396ce5990954f85194029eeb391bc3529ff (patch)
tree1e9c2f464daf7966d11aa31cf069fa1bc63fdb21 /test/Parser
parent11d2b2d2bb706fca0656f2760839721bb7f6cb6f (diff)
Notes
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/check-syntax-1.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/check-syntax-1.m b/test/Parser/check-syntax-1.m
index a1999def5982..085ff4cf67a1 100644
--- a/test/Parser/check-syntax-1.m
+++ b/test/Parser/check-syntax-1.m
@@ -9,3 +9,13 @@ typedef float CGFloat;
// expected-error {{ expected ';' after method prototype}}
@end
+// rdar: // 7822196
+@interface A
+(void) x; // expected-error {{method type specifier must start with '-' or '+'}} \
+ // expected-warning {{type specifier missing, defaults to 'int' [-Wimplicit-int]}} \
+ // expected-error {{cannot declare variable inside @interface or @protocol}}
+(int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
+- ok;
+@end
+
+