Douglas Gregor | f0aaf7a | 2009-04-24 21:10:55 +0000 | [diff] [blame] | 1 | // Test this without pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: clang-cc -include %S/method_pool.h -fsyntax-only -verify %s |
Douglas Gregor | f0aaf7a | 2009-04-24 21:10:55 +0000 | [diff] [blame] | 3 | |
| 4 | // Test with pch. |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: clang-cc -x=objective-c -emit-pch -o %t %S/method_pool.h |
Douglas Gregor | f0aaf7a | 2009-04-24 21:10:55 +0000 | [diff] [blame] | 6 | // RUN: clang-cc -include-pch %t -fsyntax-only -verify %s |
| 7 | |
| 8 | int message_id(id x) { |
| 9 | return [x instMethod:17]; // expected-warning{{multiple methods}} |
| 10 | } |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | /* Whitespace below is significant */ |
| 17 | /* expected-note{{using}} */ |
| 18 | |
| 19 | |
| 20 | |
| 21 | /* expected-note{{also}} */ |