summaryrefslogtreecommitdiffstats
path: root/test/ARCMT/objcmt-with-pch.m.result
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-05 16:37:00 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-05 16:37:00 +0000
commited351e6bad7314664385ee948ccec22c94ed326e (patch)
treebeca57e31b92a675e7b3a377ee797b156339d806 /test/ARCMT/objcmt-with-pch.m.result
parent3ad86fd2effccf1b9337e8cb9a317e4353cec275 (diff)
[arcmt] Make sure the objc migrators work fine when used with a PCH.
rdar://13140508 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT/objcmt-with-pch.m.result')
-rw-r--r--test/ARCMT/objcmt-with-pch.m.result16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ARCMT/objcmt-with-pch.m.result b/test/ARCMT/objcmt-with-pch.m.result
new file mode 100644
index 0000000000..04eadc9d3f
--- /dev/null
+++ b/test/ARCMT/objcmt-with-pch.m.result
@@ -0,0 +1,16 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -x objective-c %S/Common.h -emit-pch -o %t.pch
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c -include-pch %t.pch
+// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result -include-pch %t.pch
+
+@interface NSNumber : NSObject
+@end
+
+@interface NSNumber (NSNumberCreation)
++ (NSNumber *)numberWithInt:(int)value;
+@end
+
+void foo() {
+ NSNumber *n = @1;
+}