annotate clang/test/Parser/check-syntax-1.m @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +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 -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}}
anatofuz
parents:
diff changeset
4 @end
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 typedef float CGFloat;
anatofuz
parents:
diff changeset
7 @interface XNSNumber
anatofuz
parents:
diff changeset
8 + (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \
anatofuz
parents:
diff changeset
9 // expected-error {{expected ';' after method prototype}}
anatofuz
parents:
diff changeset
10 @end
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // rdar: // 7822196
anatofuz
parents:
diff changeset
13 @interface A
anatofuz
parents:
diff changeset
14 (void) x; // expected-error {{method type specifier must start with '-' or '+'}}
anatofuz
parents:
diff changeset
15 (int)im; // expected-error {{method type specifier must start with '-' or '+'}} \
anatofuz
parents:
diff changeset
16 - ok;
anatofuz
parents:
diff changeset
17 @end
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19