diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-17 02:12:47 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-17 02:12:47 +0000 |
commit | c3f2d2bb839593eed8861bce14228df0faf7b6c0 (patch) | |
tree | 88c34d5538c2eb4e20af2356df8e44ffe86fd95c /test/ASTMerge/Inputs | |
parent | 6362fe62ad23e97aea85a3c5e6ba0fde77ba461c (diff) | |
download | clang-c3f2d2bb839593eed8861bce14228df0faf7b6c0.tar.gz |
Implement AST importing and checking for Objective-C method declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs')
-rw-r--r-- | test/ASTMerge/Inputs/interface1.m | 24 | ||||
-rw-r--r-- | test/ASTMerge/Inputs/interface2.m | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/test/ASTMerge/Inputs/interface1.m b/test/ASTMerge/Inputs/interface1.m index ebcd2bbbd9..bde667475d 100644 --- a/test/ASTMerge/Inputs/interface1.m +++ b/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 diff --git a/test/ASTMerge/Inputs/interface2.m b/test/ASTMerge/Inputs/interface2.m index 2e6b0bf2b4..1d5bebd996 100644 --- a/test/ASTMerge/Inputs/interface2.m +++ b/test/ASTMerge/Inputs/interface2.m @@ -21,3 +21,26 @@ @interface I4 : I1 { } @end + +// Methods match +@interface I5 ++ (float)bar; +- (int)foo; +@end + +// Method mismatch +@interface I6 ++ (float)foo; +@end + +// Method mismatch +@interface I7 +- (int)foo; ++ (int)bar:(float)x; +@end + +// Method mismatch +@interface I8 +- (int)foo; ++ (int)bar:(float)x, ...; +@end |