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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [invalid-method-2.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 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 "expected" } */
11
{
12
  return 0;
13
}
14
- (id) method2: (x)argument /* { dg-error "expected" } */
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.