clang/test/Parser/missing-end-3.m
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | // expected-note@+1 {{previous definition is here}} |
| 4 | @interface blah { // expected-note {{class started here}} |
| 5 | @private |
| 6 | } |
| 7 | // since I forgot the @end here it should say something |
| 8 | |
| 9 | // expected-error@+1 {{duplicate interface definition for class 'blah'}} |
| 10 | @interface blah // expected-error {{missing '@end'}} |
| 11 | @end |
| 12 |