From e2c4cd899844a22b77d596b3928fc9ec9ea6fce4 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 4 Dec 2007 21:48:54 +0000 Subject: [PATCH] Test case for my last patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44581 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/undecl-objc-h.m | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/Sema/undecl-objc-h.m diff --git a/test/Sema/undecl-objc-h.m b/test/Sema/undecl-objc-h.m new file mode 100644 index 0000000000..d5103d335c --- /dev/null +++ b/test/Sema/undecl-objc-h.m @@ -0,0 +1,29 @@ +// RUN: clang -rewrite-test %s | clang + +typedef struct S { + int * pint; + int size; +}NSRec; + +@interface SUPER +- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2; +@end + +@interface MyDerived : SUPER +{ + NSRec d; +} +- (int) instanceMethod; +- (int) another : (int) arg; +- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2; +@end + +@implementation MyDerived +- (int) instanceMethod { + return [self another : [self MainMethod : d : d].size]; +} + +- (int) another : (int) arg { return arg; } +- (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2 { return Arg2; } +@end + -- 2.50.1