summaryrefslogtreecommitdiff
path: root/test/ARCMT/releases.m.result
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/releases.m.result')
-rw-r--r--test/ARCMT/releases.m.result15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/ARCMT/releases.m.result b/test/ARCMT/releases.m.result
index 1d36f3e6b7de8..556610ab2a534 100644
--- a/test/ARCMT/releases.m.result
+++ b/test/ARCMT/releases.m.result
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fobjc-nonfragile-abi -fobjc-exceptions -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-exceptions -fblocks -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t
+// RUN: %clang_cc1 -fobjc-exceptions -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
+// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-exceptions -fblocks -fsyntax-only -x objective-c %s > %t
// RUN: diff %t %s.result
#define nil 0
@@ -77,3 +77,14 @@ void block_test(Foo *p) {
void test2(id p) {
}
+
+@implementation Foo2
+
+static id internal_var = 0;
+
++ (void)setIt:(id)newone {
+ if (internal_var != newone) {
+ internal_var = newone;
+ }
+}
+@end