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 *-*-* +}