Fariborz Jahanian | 55edca9 | 2011-02-23 00:11:21 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // rdar://7029784 | ||||
3 | |||||
4 | @interface A | ||||
5 | -(id) f0 { // expected-error {{expected ';' after method prototype}} | ||||
6 | assert(0); | ||||
7 | } | ||||
8 | @end | ||||
9 | |||||
Fariborz Jahanian | 55edca9 | 2011-02-23 00:11:21 +0000 | [diff] [blame] | 10 | @interface C |
11 | - (id) f0 { // expected-error {{expected ';' after method prototype}} | ||||
12 | assert(0); | ||||
13 | }; | ||||
14 | @end |