1  /* Check that -fsanitize=thread options defines __SANITIZE_THREAD__ macros.  */
       2  /* { dg-do compile } */
       3  /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
       4  
       5  int
       6  main ()
       7  {
       8  #ifndef __SANITIZE_THREAD__
       9    bad construction
      10  #endif
      11    return 0;
      12  }