Patchwork PR objc/24393

login
register
mail settings
Submitter Nicola Pero
Date Oct. 24, 2010, 3:38 a.m.
Message ID <1287891538.609128239@192.168.2.229>
Download mbox | patch
Permalink /patch/69024/
State New
Headers show

Comments

Nicola Pero - Oct. 24, 2010, 3:38 a.m.
Another ObjC bug that we have already fixed in trunk.

Ok to commit two testcases ?

Thanks
Mike Stump - Oct. 24, 2010, 4:48 a.m.
On Oct 23, 2010, at 8:38 PM, "Nicola Pero" <nicola.pero@meta-innovation.com> wrote:
> Another ObjC bug that we have already fixed in trunk.
> 
> Ok to commit two testcases ?


Ok.
>

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 165896)
+++ ChangeLog   (working copy)
@@ -1,5 +1,17 @@ 
 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
+       PR objc/24393
+       * objc.dg/pr24393.m: New.
+       * obj-c++.dg/pr24393.mm: New.
+
+2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
Index: objc.dg/pr24393.m
===================================================================
--- objc.dg/pr24393.m   (revision 0)
+++ objc.dg/pr24393.m   (revision 0)
@@ -0,0 +1,10 @@ 
+/* { dg-compile } */
+#include <objc/objc.h>
+
+@interface Foo
+{
+  Class isa;
+}
+- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */
+- (void) someOtherMethod;
+@end
Index: obj-c++.dg/pr24393.mm
===================================================================
--- obj-c++.dg/pr24393.mm       (revision 0)
+++ obj-c++.dg/pr24393.mm       (revision 0)
@@ -0,0 +1,10 @@ 
+/* { dg-compile } */
+#include <objc/objc.h>
+
+@interface Foo
+{
+  Class isa;
+}
+- (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */
+- (void) someOtherMethod;
+@end