From: Alexandre Oliva Date: Sun, 11 Oct 1998 19:36:47 +0000 (+0000) Subject: conv3.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c7bfd91142be0173cfbbf8606e18c5c3275f2a9;p=gcc.git conv3.C: New test. * g++.old-deja/g++.other/conv3.C: New test. conversion discards const From-SVN: r22995 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d877a3de063..e43637e6acb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-12 Alexandre Oliva + * g++.old-deja/g++.other/conv3.C: New test. conversion discards + const + * g++.old-deja/g++.other/pmf2.C: New test. invalid pointer-to-member expression diff --git a/gcc/testsuite/g++.old-deja/g++.other/conv3.C b/gcc/testsuite/g++.old-deja/g++.other/conv3.C new file mode 100644 index 00000000000..652f3529229 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/conv3.C @@ -0,0 +1,13 @@ +// Build don't link: + +// submitted by David C Binderman + +typedef const int ci; +typedef ci aci[ 10]; +aci var = { 2, 3, 5, 7, 11, 13 }; + +void +f() +{ + int * ip = var; // ERROR - requires const_cast - XFAIL *-*-* +}