diff mbox

PR objc/24393

Message ID 1287891538.609128239@192.168.2.229
State New
Headers show

Commit Message

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

Ok to commit two testcases ?

Thanks

Comments

Mike Stump Oct. 24, 2010, 4:48 a.m. UTC | #1
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.
>
diff mbox

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