Chris Lattner | f7830b6 | 2009-04-22 05:31:53 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Steve Naroff | a7503a7 | 2009-04-23 15:15:40 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s && |
Chris Lattner | f7830b6 | 2009-04-22 05:31:53 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Steve Naroff | a7503a7 | 2009-04-23 15:15:40 +0000 | [diff] [blame] | 5 | // RUN: clang-cc -x=objective-c -emit-pch -o %t %S/objc_methods.h && |
| 6 | // RUN: clang-cc -include-pch %t -fsyntax-only -verify %s |
Chris Lattner | f7830b6 | 2009-04-22 05:31:53 +0000 | [diff] [blame] | 7 | |
| 8 | void func() { |
Steve Naroff | a7503a7 | 2009-04-23 15:15:40 +0000 | [diff] [blame] | 9 | TestPCH *xx; |
Steve Naroff | 8f06f84 | 2009-04-23 16:00:56 +0000 | [diff] [blame] | 10 | TestForwardClassDecl *yy; |
| 11 | // FIXME: |
| 12 | // AliasForTestPCH *zz; |
| 13 | |
Steve Naroff | a7503a7 | 2009-04-23 15:15:40 +0000 | [diff] [blame] | 14 | xx = [TestPCH alloc]; |
Chris Lattner | f7830b6 | 2009-04-22 05:31:53 +0000 | [diff] [blame] | 15 | [xx instMethod]; |
Chris Lattner | f7830b6 | 2009-04-22 05:31:53 +0000 | [diff] [blame] | 16 | } |