aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/protocols.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/protocols.m')
-rw-r--r--test/SemaObjC/protocols.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjC/protocols.m b/test/SemaObjC/protocols.m
index 8447fe2aad2f..ca38f20fbd01 100644
--- a/test/SemaObjC/protocols.m
+++ b/test/SemaObjC/protocols.m
@@ -61,3 +61,7 @@
@protocol B < A > // expected-error{{protocol has circular dependency}}
@end
+@protocol P
+- (int)test:(int)param, ..; // expected-warning{{type specifier missing}} \
+ // expected-error{{expected ';' after method prototype}}
+@end