diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-07-22 18:13:54 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-07-22 18:13:54 +0000 |
commit | 0474cfdba79f8a89016fbcdc4f7d8aabe00f9456 (patch) | |
tree | ce0b62b7f371ab1942a4af7943bce6b08a3f3327 /test/ARCMT/checking-in-arc.m | |
parent | 10ed9819769e66f52cc6e22a74c2d96e601d7d26 (diff) |
[arcmt] Only disable ARC in the second compilation if there were actually ARC errors in the checking phase.
rdar://14490204
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT/checking-in-arc.m')
-rw-r--r-- | test/ARCMT/checking-in-arc.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ARCMT/checking-in-arc.m b/test/ARCMT/checking-in-arc.m index 5a1b3d3f06..0b6c3d16de 100644 --- a/test/ARCMT/checking-in-arc.m +++ b/test/ARCMT/checking-in-arc.m @@ -45,3 +45,7 @@ extern const CFStringRef kUTTypeRTF; @implementation Test @end + +#if ! __has_feature(objc_arc) +#error This file must be compiled with ARC (set -fobjc_arc flag on file) +#endif |