* lto.c (do_stream_out): Add PART parameter; open dump file.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / class-extension-4.mm
blob9e19aa70d3bd9d8c963930eecc556595b41ae3d8
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2 /* { dg-do compile } */
4 /* This test tests you can not declare a class extension after the class @implementation.  */
6 #include <objc/objc.h>
8 @interface MyObject
10   Class isa;
12 @end
14 @implementation MyObject
15 @end
17 @interface MyObject () /* { dg-error "class extension for class .MyObject. declared after its ..implementation." } */
18 - (void) test;
19 @end