aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT/GC.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/GC.m')
-rw-r--r--test/ARCMT/GC.m13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/ARCMT/GC.m b/test/ARCMT/GC.m
index 470ec64ab9..b3ba2a4211 100644
--- a/test/ARCMT/GC.m
+++ b/test/ARCMT/GC.m
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-gc-only -x objective-c %s > %t
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -x objective-c %s.result
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -x objective-c %s > %t
// RUN: diff %t %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-gc-only -x objective-c++ %s > %t
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -x objective-c++ %s > %t
// RUN: diff %t %s.result
#include "Common.h"
@@ -41,3 +41,10 @@ void test1(CFTypeRef *cft) {
test1(0);
}
@end
+
+__attribute__((objc_arc_weak_reference_unavailable))
+@interface QQ {
+ __weak id s;
+ __weak QQ *q;
+}
+@end