diff options
Diffstat (limited to 'test/ARCMT/objcmt-with-pch.m')
-rw-r--r-- | test/ARCMT/objcmt-with-pch.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ARCMT/objcmt-with-pch.m b/test/ARCMT/objcmt-with-pch.m new file mode 100644 index 000000000000..fac42c851235 --- /dev/null +++ b/test/ARCMT/objcmt-with-pch.m @@ -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 = [NSNumber numberWithInt:1]; +} |