summaryrefslogtreecommitdiff
path: root/test/ARCMT/with-working-dir.m.result
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-15 23:25:17 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-15 23:25:17 +0000
commit8f0e8d22960d56f8390f4971e2c0f2f0a0884602 (patch)
tree288fc5496bfa36bab70b98f3be6bb5cd13645214 /test/ARCMT/with-working-dir.m.result
parentf85e193739c953358c865005855253af4f68a497 (diff)
downloadclang-8f0e8d22960d56f8390f4971e2c0f2f0a0884602.tar.gz
The ARC Migration Tool. All the credit goes to Argyrios and Fariborz
for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133104 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT/with-working-dir.m.result')
-rw-r--r--test/ARCMT/with-working-dir.m.result43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/ARCMT/with-working-dir.m.result b/test/ARCMT/with-working-dir.m.result
new file mode 100644
index 0000000000..19cdec48aa
--- /dev/null
+++ b/test/ARCMT/with-working-dir.m.result
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
+// RUN: arcmt-test --args -working-directory %S with-working-dir.m > %t
+// RUN: diff %t %s.result
+
+typedef int BOOL;
+id IhaveSideEffect();
+
+@protocol NSObject
+- (BOOL)isEqual:(id)object;
+- (id)retain;
+- (oneway void)release;
+- (id)something;
+@end
+
+@interface NSObject <NSObject> {}
+@end
+
+@interface Foo : NSObject {
+ id bar;
+}
+@property (retain) id bar;
+-(id)test:(id)obj;
+@end
+
+@implementation Foo
+
+@synthesize bar;
+
+-(id)test:(id)obj {
+ id x = self.bar;
+ self.bar = obj;
+
+ IhaveSideEffect();
+
+ [self something];
+
+ [self something];
+
+ // do stuff with x;
+ return self;
+}
+
+@end