Author: spyffe
Date: Fri Feb 3 20:28:18 2012
New Revision: 149744
URL: http://llvm.org/viewvc/llvm-project?rev=149744&view=rev
Log:
Fixed some testsuite problems introduced by my
last commit. Sorry for the outage.
Added:
cfe/trunk/test/SemaObjCXX/debugger-cast-result-to-id.mm
Modified:
cfe/trunk/test/SemaObjC/debugger-cast-result-to-id.m
cfe/trunk/test/SemaObjCXX/unknown-anytype.mm
Modified: cfe/trunk/test/SemaObjC/debugger-cast-result-to-id.m
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/debugger-cast-result-to-id.m?rev=149744&r1=149743&r2=149744&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/debugger-cast-result-to-id.m (original)
+++ cfe/trunk/test/SemaObjC/debugger-cast-result-to-id.m Fri Feb 3 20:28:18
2012
@@ -7,21 +7,3 @@
(void)(int)[[test0 unknownMethod] otherUnknownMethod];;
(void)(id)[[test1() unknownMethod] otherUnknownMethod];
}
-// RUN: %clang_cc1 -funknown-anytype -fsyntax-only -fdebugger-support
-fdebugger-cast-result-to-id -verify %s
-
-extern __unknown_anytype test0;
-extern __unknown_anytype test1();
-
-void test_unknown_anytype_receiver() {
- (void)(int)[[test0 unknownMethod] otherUnknownMethod];;
- (void)(id)[[test1() unknownMethod] otherUnknownMethod];
-}
-// RUN: %clang_cc1 -funknown-anytype -fsyntax-only -fdebugger-support
-fdebugger-cast-result-to-id -verify %s
-
-extern __unknown_anytype test0;
-extern __unknown_anytype test1();
-
-void test_unknown_anytype_receiver() {
- (void)(int)[[test0 unknownMethod] otherUnknownMethod];;
- (void)(id)[[test1() unknownMethod] otherUnknownMethod];
-}
Added: cfe/trunk/test/SemaObjCXX/debugger-cast-result-to-id.mm
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/debugger-cast-result-to-id.mm?rev=149744&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjCXX/debugger-cast-result-to-id.mm (added)
+++ cfe/trunk/test/SemaObjCXX/debugger-cast-result-to-id.mm Fri Feb 3 20:28:18
2012
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fdebugger-support -fdebugger-cast-result-to-id
-funknown-anytype -fsyntax-only -verify %s
+
+// rdar://problem/9416370
+namespace test0 {
+ void test(id x) {
+ if ([x foo]) {} // expected-error {{no known method '-foo'; cast the
message send to the method's return type}}
+ [x foo];
+ }
+}
Modified: cfe/trunk/test/SemaObjCXX/unknown-anytype.mm
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/unknown-anytype.mm?rev=149744&r1=149743&r2=149744&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/unknown-anytype.mm (original)
+++ cfe/trunk/test/SemaObjCXX/unknown-anytype.mm Fri Feb 3 20:28:18 2012
@@ -4,6 +4,6 @@
namespace test0 {
void test(id x) {
if ([x foo]) {} // expected-error {{no known method '-foo'; cast the
message send to the method's return type}}
- [x foo];
+ [x foo]; // expected-error {{no known method '-foo'; cast the message send
to the method's return type}}
}
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits