Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenObjC/class-getter-dotsyntax.m @ 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 -emit-llvm -o %t %s |
2 | |
3 @interface Test { } | |
4 + (Test *)crash; | |
5 + (void)setCrash: (int)value; | |
6 @end | |
7 | |
8 @implementation Test | |
9 static int _value; | |
10 - (void)cachesPath | |
11 { | |
12 static Test *cachesPath; | |
13 | |
14 if (!cachesPath) { | |
15 Test *crash = Test.crash; | |
16 } | |
17 } | |
18 + (Test *)crash{ return 0; } | |
19 + (void)setCrash: (int)value{ _value = value; } | |
20 @end | |
21 |