Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjCXX/overload-gc.mm @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -triple i386-apple-darwin9 -fobjc-gc -verify %s |
2 // expected-no-diagnostics | |
3 | |
4 void f0(__weak id *); | |
5 | |
6 void test_f0(id *x) { | |
7 f0(x); | |
8 } | |
9 | |
10 @interface A | |
11 @end | |
12 | |
13 void f1(__weak id*); | |
14 void test_f1(__weak A** a) { | |
15 f1(a); | |
16 } | |
17 | |
18 @interface B : A | |
19 @end | |
20 | |
21 void f2(__weak A**); | |
22 void test_f2(__weak B** b) { | |
23 f2(b); | |
24 } | |
25 |