[cfe-commits] r157404 - in /cfe/trunk/test/ARCMT: objcmt-boxing.m objcmt-boxing.m.result
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu May 24 10:49:22 PDT 2012
Author: akirtzidis
Date: Thu May 24 12:49:22 2012
New Revision: 157404
URL: http://llvm.org/viewvc/llvm-project?rev=157404&view=rev
Log:
[objcmt] Add test case for r157395.
Modified:
cfe/trunk/test/ARCMT/objcmt-boxing.m
cfe/trunk/test/ARCMT/objcmt-boxing.m.result
Modified: cfe/trunk/test/ARCMT/objcmt-boxing.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-boxing.m?rev=157404&r1=157403&r2=157404&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-boxing.m (original)
+++ cfe/trunk/test/ARCMT/objcmt-boxing.m Thu May 24 12:49:22 2012
@@ -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 @@
MyEnm myenum;
[NSNumber numberWithInteger:myenum];
[NSNumber numberWithInteger:ME_foo];
+ [NSNumber numberWithDouble:cppb]; // expected-warning {{converting to boxing syntax requires a cast}}
}
void boxString() {
Modified: cfe/trunk/test/ARCMT/objcmt-boxing.m.result
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/objcmt-boxing.m.result?rev=157404&r1=157403&r2=157404&view=diff
==============================================================================
--- cfe/trunk/test/ARCMT/objcmt-boxing.m.result (original)
+++ cfe/trunk/test/ARCMT/objcmt-boxing.m.result Thu May 24 12:49:22 2012
@@ -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 @@
MyEnm myenum;
@(myenum);
@(ME_foo);
+ [NSNumber numberWithDouble:cppb]; // expected-warning {{converting to boxing syntax requires a cast}}
}
void boxString() {
More information about the cfe-commits
mailing list