(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr61756.c
       1  /* PR target/61756  */
       2  
       3  /* { dg-do compile } */
       4  /* { dg-options "-O2" } */
       5  
       6  #include <stdatomic.h>
       7  
       8  static volatile atomic_flag guard = ATOMIC_FLAG_INIT;
       9  
      10  void
      11  try_atomic_flag_test_and_set (void)
      12  {
      13    atomic_flag_test_and_set (&guard);
      14  }