blob: 61e9b980171683ee409dd7c467f9712537b49c98 [file] [log] [blame]
Fariborz Jahaniana16904b2009-05-05 23:28:21 +00001// RUN: clang-cc -triple x86_64-darwin-10 -fobjc-gc -emit-llvm -o %t %s &&
2// RUN: grep objc_assign_strongCast %t | count 3 &&
3// RUN: true
4
5@interface A
6@end
7
8typedef struct s0 {
9 A *a[4];
10} T;
11
12T g0;
13
14void f0(id x) {
15 g0.a[0] = x;
16}
17
18void f1(id x) {
19 ((T*) &g0)->a[0] = x;
20}
21