Debian Codegraph @

gcc/testsuite/gcc.dg/pr91441.c

raw
1 /* PR target/91441 */
2 /* { dg-do compile } */
3 /* { dg-options "--param asan-stack=1 -fsanitize=kernel-address" } */
4 /* { dg-skip-if "no address sanitizer" { no_fsanitize_address } } */
5
6 int *bar(int *);
7 int *f( int a)
8 {
9 return bar(&a);
10 }
11 /* { dg-warning ".'-fsanitize=kernel-address' with stack protection is not supported without '-fasan-shadow-offset=' for this target" "" { target riscv*-*-* } 0 } */