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 | 43f54796ab4233abc08096ca53b066ed56278c6f (patch) | |
tree | 18d7d74356f10d058ad2e9a6314788b6775c6c2d /clang/test/ASTMerge/Inputs | |
parent | 03db9e9cd3deda37d046c944930485a57b81cf6c (diff) | |
download | bcm5719-llvm-43f54796ab4233abc08096ca53b066ed56278c6f.tar.gz bcm5719-llvm-43f54796ab4233abc08096ca53b066ed56278c6f.zip |
Implement AST importing and checking for Objective-C method declarations.
llvm-svn: 96442
Diffstat (limited to 'clang/test/ASTMerge/Inputs')
-rw-r--r-- | clang/test/ASTMerge/Inputs/interface1.m | 24 | ||||
-rw-r--r-- | clang/test/ASTMerge/Inputs/interface2.m | 23 |
2 files changed, 47 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 diff --git a/clang/test/ASTMerge/Inputs/interface2.m b/clang/test/ASTMerge/Inputs/interface2.m index 2e6b0bf2b4e..1d5bebd9969 100644 --- a/clang/test/ASTMerge/Inputs/interface2.m +++ b/clang/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 |