1/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */ 2/* { dg-do compile } */ 3 4/* This test tests you can not declare a class extension after the class @implementation. */ 5 6#include <objc/objc.h> 7 8@interface MyObject 9{ 10 Class isa; 11} 12@end 13 14@implementation MyObject 15@end 16 17@interface MyObject () /* { dg-error "class extension for class .MyObject. declared after its ..implementation." } */ 18- (void) test; 19@end 20