summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/Inputs/interface1.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/Inputs/interface1.m')
-rw-r--r--clang/test/ASTMerge/Inputs/interface1.m24
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/Inputs/interface1.m b/clang/test/ASTMerge/Inputs/interface1.m
index ebcd2bbbd9b..bde667475dc 100644
--- a/clang/test/ASTMerge/Inputs/interface1.m
+++ b/clang/test/ASTMerge/Inputs/interface1.m
@@ -21,3 +21,27 @@
@interface I4 : I2 {
}
@end
+
+// Methods match
+@interface I5
+- (int)foo;
++ (float)bar;
+@end
+
+// Method mismatch
+@interface I6
+- (int)foo;
++ (int)foo;
+@end
+
+// Method mismatch
+@interface I7
+- (int)foo;
++ (int)bar:(int)x;
+@end
+
+// Method mismatch
+@interface I8
+- (int)foo;
++ (int)bar:(float)x;
+@end
OpenPOWER on IntegriCloud