You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
639 B
20 lines
639 B
// REQUIRES: x86-registered-target
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s -verify
|
|
// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c
|
|
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
|
|
|
|
// Make sure there is no crash.
|
|
|
|
@interface NSObject @end
|
|
@interface NSNumber : NSObject
|
|
@end
|
|
|
|
@interface NSNumber (NSNumberCreation)
|
|
+ (NSNumber *)numberWithInt:(int)value;
|
|
@end
|
|
|
|
void foo(int x = undeclared) { // expected-error {{undeclared}}
|
|
NSNumber *n = @1;
|
|
}
|