blob: 7fb3e576f54ee65c3a53d2469b4507b168fbf2d2 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fsanitize=thread -c -O3 -fdump-tree-optimized" } */
int x;
static inline
__attribute__((no_sanitize("thread")))
void do_not_sanitize(void)
{
x++;
}
void
sanitize_this(void)
{
x++;
do_not_sanitize();
}
/* { dg-final { scan-tree-dump-times "Function do_not_sanitize" 1 "optimized" } } */