Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / inline-kernel.c
blob20689f86626fff3f59c82f46bf02aa6675503199
1 /* { dg-do compile } */
2 /* { dg-options "-fno-sanitize=address -fsanitize=kernel-address -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */
4 int x;
6 static inline
7 __attribute__((no_sanitize("kernel-address")))
8 void do_not_sanitize(void)
10 x++;
13 void
14 sanitize_this(void)
16 x++;
17 do_not_sanitize();
20 /* { dg-final { scan-tree-dump-times "Function do_not_sanitize" 1 "optimized" } } */