annotate clang/test/SemaObjC/string.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 %s -verify -fsyntax-only
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 %s -verify -fsyntax-only -DDECLAREIT
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // a declaration of NSConstantString is not required.
anatofuz
parents:
diff changeset
5 #ifdef DECLAREIT
anatofuz
parents:
diff changeset
6 @interface NSConstantString;
anatofuz
parents:
diff changeset
7 @end
anatofuz
parents:
diff changeset
8 #endif
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 id s = @"123"; // simple
anatofuz
parents:
diff changeset
13 id t = @"123" @"456"; // concat
anatofuz
parents:
diff changeset
14 id u = @"123" @ blah; // expected-error {{unexpected token}}
anatofuz
parents:
diff changeset
15