gcc/testsuite/gcc.dg/vect/pr37385.c
raw| 1 | /* Testcase by Martin Michlmayr <[email protected]> */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target vect_int } */ |
| 4 | |
| 5 | typedef int int_t; |
| 6 | typedef void (*fun_t) (int); |
| 7 | fun_t fun_tab[400] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))); |
| 8 | |
| 9 | void foo (int_t a); |
| 10 | |
| 11 | void |
| 12 | bar () |
| 13 | { |
| 14 | int i; |
| 15 | |
| 16 | for (i = 0; i < 400; i++) |
| 17 | fun_tab[i] = foo; |
| 18 | } |
| 19 |