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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error5.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/13269
2
// { dg-options "-fshow-column" }
3
 
4
class Foo { int foo() return 0; } };
5
 
6
// { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 4 }
7
 
8
// { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 4 }
9
 
10
// the column number info of this error output is still wrong because the error
11
// message has been generated by cp_parser_error() which does not
12
// necessarily allow accurate column number display. At some point, we will
13
// need make cp_parser_error() report more accurate column numbers.
14
// { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 4 }
15
 
16
// { dg-error "33:expected ';' after class definition" "semicolon" {target *-*-* } 4 }
17
 
18
// { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 4 }
19
 

powered by: WebSVN 2.1.0

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