[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / sync-3.C
blob99faac7bc55d5f242457be0eaeda2df79454c3f4
1 // PR debug/41801
2 // { dg-do compile }
3 // { dg-options "-O2 -g" }
5 struct T
7   void
8   foo () volatile
9   {
10     __sync_lock_release (&t);
11     __sync_synchronize ();
12   }
13   bool t;
16 int
17 main ()
19   T t = { false };
20   t.foo ();