gcc/testsuite/g++.target/aarch64/sve/pr119610-sve.C
raw| 1 | // { dg-do run { target aarch64_sve_hw } } |
| 2 | // { dg-additional-options "-fstack-protector-strong" { target fstack_protector } } |
| 3 | // { dg-additional-options "-fstack-clash-protection" { target supports_stack_clash_protection } } |
| 4 | |
| 5 | void *a_ptr, *b_ptr; |
| 6 | void foo() { |
| 7 | __SVInt32_t a; |
| 8 | int b[1024*128]; |
| 9 | a_ptr = &a; |
| 10 | b_ptr = b; |
| 11 | throw 1; |
| 12 | } |
| 13 | int main() |
| 14 | { |
| 15 | try { |
| 16 | foo(); |
| 17 | } catch(int x) { |
| 18 | return 0; |
| 19 | } |
| 20 | } |