Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/parse/error5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // PR c++/13269 | 1 // PR c++/13269 |
2 // { dg-options "-fshow-column" } | 2 // { dg-options "-fshow-column" } |
3 // { dg-additional-options "-Wno-return-type" } | |
3 | 4 |
4 class Foo { int foo() return 0; } }; | 5 class Foo { int foo() return 0; } }; |
5 | 6 |
6 // { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 4 } | 7 // { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 5 } |
7 | 8 |
8 // { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 4 } | 9 // { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 5 } |
9 | 10 |
10 // the column number info of this error output is still wrong because the error | 11 // 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 // message has been generated by cp_parser_error() which does not |
12 // necessarily allow accurate column number display. At some point, we will | 13 // necessarily allow accurate column number display. At some point, we will |
13 // need make cp_parser_error() report more accurate column numbers. | 14 // need make cp_parser_error() report more accurate column numbers. |
14 // { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 4 } | 15 // { dg-error "30:expected '\{' at end of input" "brace" { target *-*-* } 5 } |
15 | 16 |
16 // { dg-error "34:expected ';' after class definition" "semicolon" {target *-*-* } 4 } | 17 // { dg-error "34:expected ';' after class definition" "semicolon" {target *-*-* } 5 } |
17 | 18 |
18 // { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 4 } | 19 // { dg-error "35:expected declaration before '\}' token" "declaration" {target *-*-* } 5 } |
19 |