gcc/testsuite/c-c++-common/asan/pr88619.c
raw| 1 | /* PR sanitizer/88619 */ |
| 2 | /* { dg-do compile { target fstack_protector } } */ |
| 3 | /* { dg-options "-fstack-protector-strong -fsanitize=address" } */ |
| 4 | |
| 5 | typedef int A __attribute__((aligned (64))); |
| 6 | |
| 7 | int |
| 8 | main () |
| 9 | { |
| 10 | A b; |
| 11 | int *p = &b; |
| 12 | *(p - 1) = 123; |
| 13 | void *p2 = __builtin_alloca (b); |
| 14 | } |