annotate clang/test/SemaObjC/missing-atend-metadata.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 @interface I0 // expected-note {{receiver is instance of class declared here}}
anatofuz
parents:
diff changeset
4 @end
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 @implementation I0 // expected-note {{implementation started here}}
anatofuz
parents:
diff changeset
7 - meth { return 0; }
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 @interface I1 : I0 // expected-error {{missing '@end'}}
anatofuz
parents:
diff changeset
10 @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @implementation I1 // expected-note {{implementation started here}}
anatofuz
parents:
diff changeset
13 -(void) im0 { self = [super init]; } // expected-warning {{not found}}
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 @interface I2 : I0 // expected-error {{missing '@end'}}
anatofuz
parents:
diff changeset
16 - I2meth;
anatofuz
parents:
diff changeset
17 @end
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 @implementation I2 // expected-note {{implementation started here}}
anatofuz
parents:
diff changeset
20 - I2meth { return 0; }
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 @implementation I2(CAT) // expected-error 2 {{missing '@end'}} expected-note {{implementation started here}}