URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [class-extension-4.m] - Rev 713
Go to most recent revision | Compare with Previous | Blame | View Log
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */ /* { dg-do compile } */ /* This test tests you can not declare a class extension after the class @implementation. */ #include <objc/objc.h> @interface MyObject { Class isa; } @end @implementation MyObject @end @interface MyObject () - (void) test; /* { dg-error "class extension for class .MyObject. declared after its ..implementation." } */ @end
Go to most recent revision | Compare with Previous | Blame | View Log