diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c index e7cb925e832..ee7cf02c649 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c @@ -47,9 +47,11 @@ int main_1 (int n, int *p) return 0; } -int main (int n) +static volatile int n = 1; + +int main (void) { - return main_1 (n + 2, &n); + return main_1 (n + 2, (int *) &n); } /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */ |