| 1 |
/* { dg-options "" } */ |
| 2 |
|
| 3 |
#include <arm_sme.h> |
| 4 |
|
| 5 |
inline void |
| 6 |
call_svzero () [[arm::inout("za"), arm::streaming_compatible]] |
| 7 |
{ |
| 8 |
svzero_za (); |
| 9 |
} |
| 10 |
|
| 11 |
void |
| 12 |
n_caller () |
| 13 |
{ |
| 14 |
call_svzero (); // { dg-error "call to a function that shares 'za' state from a function that has no 'za' state" } |
| 15 |
} |
| 16 |
|
| 17 |
void |
| 18 |
s_caller () |
| 19 |
{ |
| 20 |
call_svzero (); // { dg-error "call to a function that shares 'za' state from a function that has no 'za' state" } |
| 21 |
} |
| 22 |
|
| 23 |
void |
| 24 |
sc_caller () |
| 25 |
{ |
| 26 |
call_svzero (); // { dg-error "call to a function that shares 'za' state from a function that has no 'za' state" } |
| 27 |
} |