aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/error5.C
blob: eb1f9c730a839f9a22e9771a29c5714c26a46320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/13269
// { dg-options "-fshow-column" }

class Foo { int foo() return 0; } };

// { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 4 }

// { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 4 }

// the column number info of this error output is still wrong because the error
// message has been generated by cp_parser_error() which does not
// necessarily allow accurate column number display. At some point, we will
// need make cp_parser_error() report more accurate column numbers.
// { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 4 }

// { dg-error "33:expected ';' after class definition" "semicolon" {target *-*-* } 4 }

// { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 4 }