Debian Codegraph @

gcc/testsuite/c-c++-common/hwasan/stack-tagging-basic-1.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target hwaddress_exec } */
3 /* { dg-shouldfail "hwasan" } */
4
5 /* Basic tests for stack tagging.
6
7 0) Accesses outside of a variable crash.
8 1) Valid accesses work.
9 */
10
11 #define ARG 17
12 #include "stack-tagging-basic-0.c"
13 #undef ARG
14
15 /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */
16 /* { dg-output "READ of size 4 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\].* \\(ptr/mem\\) in thread T0.*" } */
17 /* { dg-output "Address 0x\[0-9a-f\]* is located in stack of thread T0.*" } */
18 /* { dg-output "SUMMARY: HWAddressSanitizer: tag-mismatch \[^\n\]*.*" } */