comparison gcc/testsuite/gcc.dg/pr61756.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }