diff --git a/clang/test/ARCMT/objcmt-boxing.m b/clang/test/ARCMT/objcmt-boxing.m index 2782cf4f2861..68c1223f681f 100644 --- a/clang/test/ARCMT/objcmt-boxing.m +++ b/clang/test/ARCMT/objcmt-boxing.m @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c++ +// RUN: %clang_cc1 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c++ -verify // 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 @@ -81,6 +81,7 @@ void foo() { MyEnm myenum; [NSNumber numberWithInteger:myenum]; [NSNumber numberWithInteger:ME_foo]; + [NSNumber numberWithDouble:cppb]; // expected-warning {{converting to boxing syntax requires a cast}} } void boxString() { diff --git a/clang/test/ARCMT/objcmt-boxing.m.result b/clang/test/ARCMT/objcmt-boxing.m.result index ebdaebdf9f43..35da8dc4f190 100644 --- a/clang/test/ARCMT/objcmt-boxing.m.result +++ b/clang/test/ARCMT/objcmt-boxing.m.result @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c++ +// RUN: %clang_cc1 -objcmt-migrate-literals -objcmt-migrate-subscripting -mt-migrate-directory %t %s -x objective-c++ -verify // 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 @@ -81,6 +81,7 @@ void foo() { MyEnm myenum; @(myenum); @(ME_foo); + [NSNumber numberWithDouble:cppb]; // expected-warning {{converting to boxing syntax requires a cast}} } void boxString() {