Sebastian Redl | 0b17c61 | 2010-08-13 00:28:03 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-pch -o %t1 %S/chain-predecl.h -x objective-c |
Douglas Gregor | b5af843 | 2011-08-25 22:54:01 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -emit-pch -o %t2 %s -x objective-c -include-pch %t1 |
Sebastian Redl | 0b17c61 | 2010-08-13 00:28:03 +0000 | [diff] [blame] | 3 | |
| 4 | // Test predeclarations across chained PCH. |
| 5 | @interface Foo |
| 6 | -(void)bar; |
| 7 | @end |
| 8 | @interface Boom |
| 9 | -(void)bar; |
| 10 | @end |
| 11 | @protocol Pro |
| 12 | -(void)baz; |
| 13 | @end |
| 14 | @protocol Kaboom |
| 15 | -(void)baz; |
| 16 | @end |