(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
atomic/
stdatomic-kill-dep.c
       1  /* Test atomic_kill_dependency.  */
       2  /* { dg-do run } */
       3  /* { dg-options "-std=c11 -pedantic-errors" } */
       4  
       5  #include <stdatomic.h>
       6  
       7  extern void abort (void);
       8  
       9  _Atomic int a = ATOMIC_VAR_INIT (1), b;
      10  
      11  int
      12  main ()
      13  {
      14    b = kill_dependency (a);
      15    if (b != 1)
      16      abort ();
      17  
      18    return 0;
      19  }