diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-103.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-103.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-103.c b/gcc/testsuite/gcc.dg/vect/vect-103.c index effa97e15ed..da1b69e5626 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-103.c +++ b/gcc/testsuite/gcc.dg/vect/vect-103.c @@ -15,6 +15,7 @@ struct extraction static int a[N] = {1,2,3,4,5,6,7,8,9}; static int b[N] = {17,24,7,0,2,3,4,31,82}; static int c[N] = {9,17,24,7,0,2,3,4,31}; +volatile int foo; int main1 (int x, int y) { int i; @@ -25,7 +26,7 @@ int main1 (int x, int y) { { p->a[i] = a[i]; p->b[i] = b[i]; - if (x == 135) + if (foo == 135) abort (); /* to avoid vectorization */ } @@ -48,6 +49,7 @@ int main (void) { check_vect (); + foo = 0; return main1 (0, N); } |