view clang/test/PCH/method-redecls.m @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
line wrap: on
line source

// RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t
// RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t -D IMPL

// Avoid infinite loop because of method redeclarations.

@interface Foo
-(void)meth;
-(void)meth;
-(void)meth;
@end

#ifdef IMPL

@implementation Foo
-(void)meth { }
@end

#endif