Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Fariborz Jahanian | ef79bc9 | 2009-04-07 18:28:06 +0000 | [diff] [blame] | 3 | |
| 4 | @interface SSyncCEList |
| 5 | { |
| 6 | id _list; |
| 7 | } |
| 8 | @end |
| 9 | |
| 10 | @implementation SSyncCEList |
| 11 | |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame] | 12 | - (id) list { return 0; } |
Fariborz Jahanian | ef79bc9 | 2009-04-07 18:28:06 +0000 | [diff] [blame] | 13 | @end |
| 14 | |
| 15 | @interface SSyncConflictList : SSyncCEList |
| 16 | @end |
| 17 | |
| 18 | @implementation SSyncConflictList |
| 19 | |
| 20 | - (id)Meth : (SSyncConflictList*)other |
| 21 | { |
| 22 | return other.list; |
| 23 | } |
| 24 | @end |
| 25 | |