]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/ARCMT/safe-arc-assign.m
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / ARCMT / safe-arc-assign.m
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t
3// RUN: diff %t %s.result
4
5void test12(id collection) {
6 for (id x in collection) {
7 x = 0;
8 x = 0;
9 }
10
11 for (__strong id x in collection) {
12 x = 0;
13 }
14}