blob: 6a4fceeb37acb156b0b92556453f6fc1bf49b876 [file] [log] [blame]
/* { dg-do run } */
/* { dg-require-effective-target hwaddress_exec } */
/* { dg-shouldfail "hwasan" } */
/*
Testing longjmp/setjmp should test.
0) Nothing special happens with the jmp_buf.
1) Accesses to scopes jmp'd over are caught.
*/
#define ARG 1
#include "setjmp-longjmp-0.c"
#undef ARG
/* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */
/* { dg-output "READ of size 4 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/00 \\(ptr/mem\\) in thread T0.*" } */
/* { dg-output "Address 0x\[0-9a-f\]* is located in stack of thread T0.*" } */
/* { dg-output "SUMMARY: HWAddressSanitizer: tag-mismatch \[^\n\]*.*" } */