annotate clang/test/SemaObjC/arc-unavailable-system-function.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 c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin11 -fobjc-arc -verify %s
anatofuz
parents:
diff changeset
2 // rdar://10186625
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 # 1 "<command line>"
anatofuz
parents:
diff changeset
5 # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
anatofuz
parents:
diff changeset
6 id * foo(); // expected-note {{declaration uses type that is ill-formed in ARC}}
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 # 1 "arc-unavailable-system-function.m" 2
anatofuz
parents:
diff changeset
9 void ret() {
anatofuz
parents:
diff changeset
10 foo(); // expected-error {{'foo' is unavailable in ARC}}
anatofuz
parents:
diff changeset
11 }
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13