Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / inline.c
blob7c7c9244b060301b2e0d8602e22d35648e8dbbf1
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=address -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */
4 int x;
6 static inline
7 __attribute__((no_sanitize("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" } } */