gcc/testsuite/gcc.target/aarch64/sve/pcs/nosve_3.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 | svbool_t (*return_bool) (); |
| 9 | |
| 10 | void |
| 11 | f (svbool_t *ptr) |
| 12 | { |
| 13 | *ptr = return_bool (); /* { dg-error {calls to functions of type 'svbool_t\(\)' require the SVE ISA extension} } */ |
| 14 | } |