Debian Codegraph @

gcc/testsuite/c-c++-common/hwasan/setjmp-longjmp-1.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target hwaddress_exec } */
3 /* { dg-shouldfail "hwasan" } */
4
5 /*
6 Testing longjmp/setjmp should test.
7
8 0) Nothing special happens with the jmp_buf.
9 1) Accesses to scopes jmp'd over are caught.
10 */
11
12 #define ARG 1
13 #include "setjmp-longjmp-0.c"
14 #undef ARG
15
16 /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */
17 /* { dg-output "READ of size 4 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/00 \\(ptr/mem\\) in thread T0.*" } */
18 /* { dg-output "Address 0x\[0-9a-f\]* is located in stack of thread T0.*" } */
19 /* { dg-output "SUMMARY: HWAddressSanitizer: tag-mismatch \[^\n\]*.*" } */