Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |
3 int @interface bla ; // expected-error {{cannot combine with previous 'int' declaration specifier}} | |
4 @end | |
5 | |
6 typedef float CGFloat; | |
7 @interface XNSNumber | |
8 + (XNSNumber *) numberWithCGFloat : (CGFloat) float; // expected-error {{expected identifier}} \ | |
9 // expected-error {{expected ';' after method prototype}} | |
10 @end | |
11 | |
12 // rdar: // 7822196 | |
13 @interface A | |
14 (void) x; // expected-error {{method type specifier must start with '-' or '+'}} | |
15 (int)im; // expected-error {{method type specifier must start with '-' or '+'}} \ | |
16 - ok; | |
17 @end | |
18 | |
19 |