gcc/testsuite/gcc.dg/gomp/simd-clones-7.c
raw| 1 | /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ |
| 2 | /* { dg-options "-fopenmp -w" } */ |
| 3 | |
| 4 | int array[1000]; |
| 5 | |
| 6 | #pragma omp declare simd notinbranch simdlen(4) |
| 7 | void foo (int *a, int b) |
| 8 | { |
| 9 | a[b] = 555; |
| 10 | } |
| 11 | |
| 12 | #pragma omp declare simd notinbranch simdlen(4) |
| 13 | void bar (int *a) |
| 14 | { |
| 15 | *a = 555; |
| 16 | } |