blob: e351f4847704a6aba5251c2188070f19b927f49f [file] [log] [blame]
Fariborz Jahanianac423ba2009-09-08 19:45:47 +00001// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s &&
2// RUN: grep objc_assign_strongCast %t | count 3 &&
3// RUN: true
4
5struct Slice {
6 void *__strong * items;
7};
8
9typedef struct Slice Slice;
10
11@interface ISlice {
12@public
13 void *__strong * items;
14}
15@end
16
17void foo () {
18 Slice *slice;
19 slice->items = 0;
20
21 ISlice *islice;
22 islice->items = 0;
23}