1  /* { dg-do compile } */
       2  /* { dg-options "-fsanitize=address -c -O3 -fdump-tree-optimized -ffat-lto-objects" } */
       3  
       4  int x;
       5  
       6  static inline
       7  __attribute__((no_sanitize("address")))
       8  void do_not_sanitize(void)
       9  {
      10    x++;
      11  }
      12  
      13  void
      14  sanitize_this(void)
      15  {
      16    x++;
      17    do_not_sanitize();
      18  }
      19  
      20  /* { dg-final { scan-tree-dump-times "Function do_not_sanitize" 1 "optimized" } } */