diff options
Diffstat (limited to 'test/PCH/method-redecls.m')
-rw-r--r-- | test/PCH/method-redecls.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/PCH/method-redecls.m b/test/PCH/method-redecls.m new file mode 100644 index 0000000000..14ce3acdfd --- /dev/null +++ b/test/PCH/method-redecls.m @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -x objective-c -emit-pch -o %t + +// Avoid infinite loop because of method redeclarations. + +@interface Foo +-(void)meth; +-(void)meth; +-(void)meth; +@end + +@implementation Foo +-(void)meth { } +@end |