Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | @interface I |
Fariborz Jahanian | fefe91e | 2011-07-28 23:19:50 +0000 | [diff] [blame] | 4 | - Meth; // expected-note{{method definition for 'Meth' not found}} \ |
| 5 | // expected-note{{method declared here}} |
Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 6 | @end |
| 7 | |
| 8 | @implementation I // expected-warning{{incomplete implementation}} |
| 9 | @end |
| 10 | |
| 11 | @implementation I(CAT) |
Fariborz Jahanian | fefe91e | 2011-07-28 23:19:50 +0000 | [diff] [blame] | 12 | - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}} |
Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 13 | @end |
| 14 | |
| 15 | #pragma GCC diagnostic ignored "-Wincomplete-implementation" |
| 16 | @interface I2 |
Fariborz Jahanian | fefe91e | 2011-07-28 23:19:50 +0000 | [diff] [blame] | 17 | - Meth; // expected-note{{method declared here}} |
Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 18 | @end |
| 19 | |
| 20 | @implementation I2 |
| 21 | @end |
| 22 | |
| 23 | @implementation I2(CAT) |
Fariborz Jahanian | fefe91e | 2011-07-28 23:19:50 +0000 | [diff] [blame] | 24 | - Meth {return 0;} // expected-warning {{category is implementing a method which will also be implemented by its primary class}} |
Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 25 | @end |
| 26 | |
Argyrios Kyrtzidis | 458bacf | 2011-10-27 00:09:34 +0000 | [diff] [blame] | 27 | @interface Q |
| 28 | @end |
| 29 | |
| 30 | // rdar://10336158 |
| 31 | @implementation Q |
| 32 | |
| 33 | __attribute__((visibility("default"))) |
| 34 | @interface QN |
| 35 | { |
| 36 | } |
| 37 | @end |
| 38 | |
| 39 | @end |
Ted Kremenek | d61df3d | 2011-02-14 23:59:16 +0000 | [diff] [blame] | 40 | |