aix: Fix building fat library for AIX
[official-gcc.git] / gcc / testsuite / objc.dg / class-extension-4.m
blob5d367d40bd53503e2a0db334424e1c8721584fd2
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.  */
7 #include <objc/objc.h>
9 @interface MyObject
11   Class isa;
13 @end
15 @implementation MyObject
16 @end
18 @interface MyObject ()
19 - (void) test; /* { dg-error "class extension for class .MyObject. declared after its ..implementation." } */
20 @end