xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/chain-predecl.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-pch -o %t1 %S/chain-predecl.h -x objective-c
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-pch -o %t2 %s -x objective-c -include-pch %t1
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc// Test predeclarations across chained PCH.
5*f4a2713aSLionel Sambuc@interface Foo
6*f4a2713aSLionel Sambuc-(void)bar;
7*f4a2713aSLionel Sambuc@end
8*f4a2713aSLionel Sambuc@interface Boom
9*f4a2713aSLionel Sambuc-(void)bar;
10*f4a2713aSLionel Sambuc@end
11*f4a2713aSLionel Sambuc@protocol Pro
12*f4a2713aSLionel Sambuc-(void)baz;
13*f4a2713aSLionel Sambuc@end
14*f4a2713aSLionel Sambuc@protocol Kaboom
15*f4a2713aSLionel Sambuc-(void)baz;
16*f4a2713aSLionel Sambuc@end
17