From: Uros Bizjak Date: Mon, 3 Mar 2008 07:39:58 +0000 (+0100) Subject: vect-99.c: Include stdlib.h and tree-vect.h. X-Git-Tag: prereleases/gcc-4.2.4-rc1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf3f7e019067b8d665a2a12ca943b91667b8a85;p=thirdparty%2Fgcc.git vect-99.c: Include stdlib.h and tree-vect.h. * gcc.dg/vect/vect-99.c: Include stdlib.h and tree-vect.h. (main): Call check_vect and foo. Check array values after the call to foo. From-SVN: r132833 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0eae31108d6a..63e8ec67140d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-03-03 Uros Bizjak + + * gcc.dg/vect/vect-99.c: Include stdlib.h and tree-vect.h. + (main): Call check_vect and foo. Check array values after + the call to foo. + 2008-02-25 Uros Bizjak * gcc.target/i386/sse-18.c: Pass if CPU has no SSE2 support. @@ -34,7 +40,7 @@ 2008-02-06 John David Anglin - * g++.dg/tree-ssa/ivopts-1.C: Remove xfails for hppa*-*-*. + * g++.dg/tree-ssa/ivopts-1.C: Remove xfails for hppa*-*-*. 2008-02-05 Richard Guenther @@ -1565,8 +1571,8 @@ 2007-02-13 Richard Henderson - * gcc.c-torture/execute/ieee/pr29302-1.c: Moved from... - * gcc.c-torture/execute/pr29302-1.c: ... here. + * gcc.c-torture/execute/ieee/pr29302-1.c: Moved from... + * gcc.c-torture/execute/pr29302-1.c: ... here. 2007-02-12 Paul Thomas @@ -1616,7 +1622,7 @@ PR debug/30189 * gcc.dg/pr30189.c: New test. -2007-02-05 Dwarakanath Rajagopal +2007-02-05 Dwarakanath Rajagopal * gcc.dg/i386-cpuid.h: Test whether SSE4A is supported for running tests. @@ -2007,8 +2013,8 @@ 2006-12-21 Steven G. Kargl - PR fortran/30207 - * gfortran.fortran-torture/execute/where21.f90: New test. + PR fortran/30207 + * gfortran.fortran-torture/execute/where21.f90: New test. 2006-12-21 Paul Thomas Tobias Burnus @@ -2170,10 +2176,10 @@ 2006-12-07 Lee Millward - PR c++/29980 - * g++.dg/ext/attrib27.C: New test. - * g++.dg/parse/struct-as-enum1.C: Adjust error markers. - * g++.dg/parse/typedef5.C: Likewise. + PR c++/29980 + * g++.dg/ext/attrib27.C: New test. + * g++.dg/parse/struct-as-enum1.C: Adjust error markers. + * g++.dg/parse/typedef5.C: Likewise. 2006-12-07 Mark Mitchell @@ -2226,7 +2232,7 @@ * g++.dg/template/error23.C: New test. 2006-12-04 Richard Henderson - Andrew Pinski + Andrew Pinski PR C++/14329 * g++.dg/warn/unit-1.C: New test. @@ -2295,7 +2301,7 @@ * gfortran.dg/interface_3.f90: Modify errors. 2006-11-27 Michael Matz - Andreas Krebbel + Andreas Krebbel PR target/29319 * gcc.dg/20061127-1.c: New testcase. @@ -2601,7 +2607,7 @@ * gcc.c-torture/execute/20061031-1.c: New test. 2006-10-31 Joseph Myers - Richard Sandiford + Richard Sandiford * lib/target-supports.exp (get_compiler_messages): Append options as a single list element. @@ -2610,9 +2616,9 @@ 2006-10-30 Tobias Burnus - PR fortran/29452 - * gfortran.dg/write_check.f90: Check run-time keyword checking. - * gfortran.dg/write_check2.f90: Check compile-time keyword checking. + PR fortran/29452 + * gfortran.dg/write_check.f90: Check run-time keyword checking. + * gfortran.dg/write_check2.f90: Check compile-time keyword checking. 2006-10-30 Joseph Myers @@ -2654,9 +2660,9 @@ 2006-10-20 Lee Millward - PR c++/28053 - * g++.dg/parse/bitfield1.C: Adjust error markers. - * g++.dg/parse/bitfield2.C: New test. + PR c++/28053 + * g++.dg/parse/bitfield1.C: Adjust error markers. + * g++.dg/parse/bitfield2.C: New test. 2006-10-20 Adam Nemet diff --git a/gcc/testsuite/gcc.dg/vect/vect-99.c b/gcc/testsuite/gcc.dg/vect/vect-99.c index 288f2ae8daf2..30d365cbf4f2 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-99.c +++ b/gcc/testsuite/gcc.dg/vect/vect-99.c @@ -1,5 +1,8 @@ /* { dg-require-effective-target vect_int } */ +#include +#include "tree-vect.h" + int ca[100]; void foo (int n) @@ -12,6 +15,16 @@ void foo (int n) int main (void) { + int i; + + check_vect (); + + foo(100); + + for (i = 0; i < 100; ++i) { + if (ca[i] != 2) + abort(); + } return 0; }