Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.old-deja/g++.other/sizeof4.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++.other/sizeof4.C Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/g++.old-deja/g++.other/sizeof4.C Thu Feb 13 11:34:05 2020 +0900 @@ -17,21 +17,21 @@ int main (int argc, char **argv) { - sizeof (s); // { dg-error "" } incomplete - sizeof (0, s); // { dg-error "" } incomplete - sizeof (argc ? s : s); // { dg-error "" } incomplete + sizeof (s); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (0, s); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (argc ? s : s); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete - sizeof (arys); // { dg-error "" } incomplete - sizeof (0, arys); // { dg-error "" } incomplete - sizeof (argc ? arys : arys); // { dg-error "" } incomplete + sizeof (arys); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (0, arys); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (argc ? arys : arys); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete - sizeof (aryt); // { dg-error "" } incomplete - sizeof (0, aryt); // { dg-error "" } incomplete - sizeof (argc ? aryt : aryt); // { dg-error "" } incomplete + sizeof (aryt); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (0, aryt); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete + sizeof (argc ? aryt : aryt); // { dg-error "3:invalid application of .sizeof. to incomplete type" } incomplete - sizeof (fn); // { dg-error "" } cannot take size of function - sizeof (0, fn); // { dg-error "" } cannot take size of function - sizeof (argc ? fn : fn); // { dg-error "" } cannot take size of function + sizeof (fn); // { dg-error "11:ISO C\\+\\+ forbids applying .sizeof." } cannot take size of function + sizeof (0, fn); // { dg-error "3:invalid application of .sizeof. to a function type" } cannot take size of function + sizeof (argc ? fn : fn); // { dg-error "3:invalid application of .sizeof. to a function type" } cannot take size of function sizeof (&fn); // ok sizeof (0, &fn); // ok