diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/special/unclaimed-category-1a.m')
-rw-r--r-- | gcc/testsuite/objc.dg/special/unclaimed-category-1a.m | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/special/unclaimed-category-1a.m b/gcc/testsuite/objc.dg/special/unclaimed-category-1a.m new file mode 100644 index 000000000..4fb2d4619 --- /dev/null +++ b/gcc/testsuite/objc.dg/special/unclaimed-category-1a.m @@ -0,0 +1,29 @@ +/* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */ + +/* Test loading unclaimed categories - categories of a class defined + separately from the class itself. */ + +#include "unclaimed-category-1.h" + +@implementation TestClass (A) +- (int)A +{ + return 1; +} +@end + +@implementation TestClass (B) +- (int)B +{ + return 2; +} +@end + +@implementation TestClass (C) +- (int)C +{ + return 3; +} +@end + + |