]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
In gcc/testsuite/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
authorNicola Pero <nicola.pero@meta-innovation.com>
Thu, 7 Oct 2010 22:26:43 +0000 (22:26 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Thu, 7 Oct 2010 22:26:43 +0000 (22:26 +0000)
In gcc/testsuite/:
2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>

       PR objc++/23614
       * obj-c++.dg/lookup-2.mm: Do not assign 'nil' to a pointer to a
       C++ class.  Removed XFAIL.

From-SVN: r165137

gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/lookup-2.mm

index b68689c2a6d86a8d0fad7a1f8249d6745b5bf32c..325ef7640fd73f93b8b9ca3c451c461b15800819 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       PR objc++/23614
+       * obj-c++.dg/lookup-2.mm: Do not assign 'nil' to a pointer to a
+       C++ class.  Removed XFAIL.
+
 2010-10-07  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/45933
index 4d56cf25c14cc4bcd68af753161ffb90f7005108..5eaf38996de2afdf23ba6d08b34893182d18daad 100644 (file)
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-xfail-if "PR23614" { "*-*-*" } { "*" } { "-fnext-runtime" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 #include "../objc-obj-c++-shared/Object1.h"
 #include <stdlib.h>
@@ -38,7 +37,7 @@ MyWidget gWidget;
 @implementation Container
 + (MyWidget *)elementForView:(Foo *)view
 {
-    MyWidget *widget = nil;
+    MyWidget *widget = 0;
     if ([view conformsTo:@protocol(MyProto)]) {
         widget = [(Foo <MyProto> *)view widget];
     }