Debian Codegraph @

gcc/testsuite/g++.dg/ext/sync-3.C

raw
1 // PR debug/41801
2 // { dg-do compile }
3 // { dg-options "-O2 -g" }
4
5 struct T
6 {
7 void
8 foo () volatile
9 {
10 __sync_lock_release (&t);
11 __sync_synchronize ();
12 }
13 bool t;
14 };
15
16 int
17 main ()
18 {
19 T t = { false };
20 t.foo ();
21 }