gcc/testsuite/gcc.target/riscv/rvv/base/pr112743-1.c
raw| 1 | /* Test that we do not have ice when compile */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-march=rv64gc_zve32f_zvfh_zfh -mabi=lp64d -O2" } */ |
| 4 | |
| 5 | typedef struct test_a { |
| 6 | void *x; |
| 7 | char a[10]; |
| 8 | short b[2]; |
| 9 | int c[1]; |
| 10 | } test_type_t; |
| 11 | |
| 12 | void |
| 13 | test_copy_memory (test_type_t *out, test_type_t *in) |
| 14 | { |
| 15 | *out = *in; |
| 16 | } |