1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
5 /* This test tests you can not declare a class extension after the class @implementation. */
15 @implementation MyObject
18 @interface MyObject ()
19 - (void) test; /* { dg-error "class extension for class .MyObject. declared after its ..implementation." } */