Debian Codegraph @

gcc/testsuite/c-c++-common/hwasan/no-sanitize-attribute.c

raw
1 /* { dg-do compile } */
2
3 __attribute__((no_sanitize("hwaddress"))) int
4 f (int *p, int *q)
5 {
6 *p = 42;
7 return *q;
8 }
9
10 /* Only have one instance of __hwasan, it is __hwasan_init (the module
11 * constructor) there is no instrumentation in the function. */
12 /* { dg-final { scan-assembler-times "__hwasan" 1 } } */