summaryrefslogtreecommitdiffstats
path: root/test/Parser/check-syntax-1.m
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
committerrdivacky <rdivacky@FreeBSD.org>2010-04-03 07:51:34 +0000
commitac616af773f5062edaaf1a0bb5610b49a22ac41f (patch)
tree1e9c2f464daf7966d11aa31cf069fa1bc63fdb21 /test/Parser/check-syntax-1.m
parent07b2cfcdb817cc0790420f159a313d61e7241cb9 (diff)
downloadFreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.zip
FreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.tar.gz
Update clang to r100285.
Diffstat (limited to 'test/Parser/check-syntax-1.m')
-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 a1999de..085ff4c 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
+
+
OpenPOWER on IntegriCloud