From: Jason Merrill Date: Thu, 13 Jul 2017 13:00:32 +0000 (-0400) Subject: 900520_03.C: Limit error to c++14_down. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62c1a252aa75de5bf3c44ffa867e761a61279049;p=gcc.git 900520_03.C: Limit error to c++14_down. * g++.old-deja/g++.bugs/900520_03.C: Limit error to c++14_down. * g++.old-deja/g++.law/array2.C: Likewise. From-SVN: r250182 --- diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C index 7978e386aba..ebcb45f57a1 100644 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C @@ -34,7 +34,7 @@ typedef int u_array[]; typedef u_array &u_array_ref; -void take_u_array_ref (u_array_ref arg) { } // { dg-error "" } reference to array of unknown bound in parmtype +void take_u_array_ref (u_array_ref arg) { } // { dg-error "" "" { target c++14_down } } reference to array of unknown bound in parmtype extern u_array u_array_gbl_obj; u_array_ref u_array_ref_gbl_obj0 = u_array_gbl_obj; // OK diff --git a/gcc/testsuite/g++.old-deja/g++.law/array2.C b/gcc/testsuite/g++.old-deja/g++.law/array2.C index 0dcddb03cd5..c51f13de0ac 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/array2.C +++ b/gcc/testsuite/g++.old-deja/g++.law/array2.C @@ -6,5 +6,5 @@ // Subject: prototype bug ? // Date: Thu, 5 Nov 92 15:37:34 PST - extern unsigned char * (*trt_def(int))[][2]; - extern unsigned char * (trt_rplst(unsigned char *(*)[][2])); // { dg-error "" } +extern unsigned char * (*trt_def(int))[][2]; +extern unsigned char * (trt_rplst(unsigned char *(*)[][2])); // { dg-error "" "" { target c++14_down } }