diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-08 16:41:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-08 16:41:55 +0000 |
commit | 35fd7bc7e099c0dfb82cc947219515bbc0b5ec0c (patch) | |
tree | 41886d62d3fb8cc088dffbb36e4e5523d17365e9 /clang/test/ASTMerge/Inputs | |
parent | d18f98b96953c31d72d59cd23fe69cffb513e8b5 (diff) | |
download | bcm5719-llvm-35fd7bc7e099c0dfb82cc947219515bbc0b5ec0c.tar.gz bcm5719-llvm-35fd7bc7e099c0dfb82cc947219515bbc0b5ec0c.zip |
Fix two thinkos and add a test for importing the AST of a category
implementation.
llvm-svn: 121263
Diffstat (limited to 'clang/test/ASTMerge/Inputs')
-rw-r--r-- | clang/test/ASTMerge/Inputs/category1.m | 14 | ||||
-rw-r--r-- | clang/test/ASTMerge/Inputs/category2.m | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/Inputs/category1.m b/clang/test/ASTMerge/Inputs/category1.m index 6d4fd8d9f28..afcaab81f2b 100644 --- a/clang/test/ASTMerge/Inputs/category1.m +++ b/clang/test/ASTMerge/Inputs/category1.m @@ -28,7 +28,21 @@ @interface I2 (Cat3) @end +@implementation I2 (Cat3) +@end + // Category with implementation @interface I2 (Cat4) @end +@implementation I2 (Cat4) +@end + +// Category with mismatched implementation +@interface I2 (Cat6) +@end + +@implementation I2 (Cat6) +- (float)blah { return 0; } +@end + diff --git a/clang/test/ASTMerge/Inputs/category2.m b/clang/test/ASTMerge/Inputs/category2.m index 646ebb557ab..49a3c270a1c 100644 --- a/clang/test/ASTMerge/Inputs/category2.m +++ b/clang/test/ASTMerge/Inputs/category2.m @@ -30,6 +30,20 @@ typedef int Int; @interface I2 (Cat3) @end +@implementation I2 (Cat3) +@end + // Category with implementation @interface I2 (Cat5) @end + +@implementation I2 (Cat5) +@end + +// Category with mismatched implementation +@interface I2 (Cat6) +@end + +@implementation I2 (Cat6) +- (int)blah { return 0; } +@end |