Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.old-deja/g++.law/ctors5.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors5.C Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/g++.old-deja/g++.law/ctors5.C Thu Feb 13 11:34:05 2020 +0900 @@ -16,13 +16,14 @@ class Y // { dg-error "1:new types may not be defined in a return type" "err" } // { dg-message "1:\\(perhaps a semicolon is missing after the definition of 'Y'\\)" "note" { target *-*-* } .-1 } + // { dg-error "1:return type specification for constructor invalid" "err" { target *-*-* } .-2 } { private: X xx; public: Y(); } -X::X( int xi ) // { dg-error "14:return type specification for constructor invalid" "err" } +X::X( int xi ) // { dg-message "1:X::X|candidate expects" "match candidate text" { target *-*-* } .-1 } { x = xi;