xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/attr-strong.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -emit-llvm -S -o %t %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc struct s0 {
4*f4a2713aSLionel Sambuc   void *a;
5*f4a2713aSLionel Sambuc };
6*f4a2713aSLionel Sambuc struct s0 * __attribute__((objc_gc(strong))) g0;
f0(void)7*f4a2713aSLionel Sambuc void f0(void) {
8*f4a2713aSLionel Sambuc   g0->a = 0;
9*f4a2713aSLionel Sambuc }
10