Test case for my last patch.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44581 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/undecl-objc-h.m b/test/Sema/undecl-objc-h.m
new file mode 100644
index 0000000..d5103d3
--- /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
+