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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [invalid-method-2.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-do compile } */
2
 
3
/* Test that using an invalid type in a method declaration produces a
4
   friendly error without a compiler crash.  */
5
 
6
@interface MyClass
7
@end
8
 
9
@implementation MyClass
10
- (x) method /* { dg-error "unknown type name" } */
11
{
12
  return 0;
13
}
14
- (id) method2: (x)argument /* { dg-error "unknown type name" } */
15
{
16
  return 0;
17
}
18
@end

powered by: WebSVN 2.1.0

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