1// REQUIRES: x86-registered-target
2// RUN: rm -rf %t
3// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -x objective-c %S/Common.h -emit-pch -o %t.pch
4// 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
5// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
6// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result -include-pch %t.pch
7
8@interface NSNumber : NSObject
9@end
10
11@interface NSNumber (NSNumberCreation)
12+ (NSNumber *)numberWithInt:(int)value;
13@end
14
15void foo() {
16  NSNumber *n = @1;
17}
18