OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [invalid-method-1.m] - Rev 714

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* Test that we keep compiling if a method definition is found outside
   of an @implementation context.
*/
 
+ (void)C { } /* { dg-error "method definition not in @implementation context" } */
 
/* We have another error here to test that the compiler is still going and
   finding errors in the rest of the code.
*/
@compatibility_alias class1 class2; /* { dg-warning "annot find class" } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.