Really protect from infinite loop when there are objc method redeclarations.
Serialization part will come later.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141950 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/PCH/method-redecls.m b/test/PCH/method-redecls.m
index 14ce3ac..a11bf5a 100644
--- a/test/PCH/method-redecls.m
+++ b/test/PCH/method-redecls.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -x objective-c -emit-pch -o %t
+// RUN: %clang_cc1 -x objective-c -emit-pch -o %t -D IMPL
// Avoid infinite loop because of method redeclarations.
@@ -8,6 +9,10 @@
-(void)meth;
@end
+#ifdef IMPL
+
@implementation Foo
-(void)meth { }
@end
+
+#endif