gcc/testsuite/gcc.target/aarch64/sve/pcs/nosve_4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-prune-output "compilation terminated" } */ |
| 3 | |
| 4 | #include <arm_sve.h> |
| 5 | |
| 6 | #pragma GCC target "+nosve" |
| 7 | |
| 8 | void take_svuint8 (svuint8_t); |
| 9 | |
| 10 | void |
| 11 | f (svuint8_t *ptr) |
| 12 | { |
| 13 | take_svuint8 (*ptr); /* { dg-error {this operation requires the SVE ISA extension} } */ |
| 14 | /* { dg-error {'take_svuint8' requires the SVE ISA extension} "" { target *-*-* } .-1 } */ |
| 15 | } |