Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
sync-3.C
blob: 99faac7bc55d5f242457be0eaeda2df79454c3f4 [
file
] [
log
] [
blame
]
// PR debug/41801
// { dg-do compile }
// { dg-options "-O2 -g" }
struct
T
{
void
foo
()
volatile
{
__sync_lock_release
(&
t
);
__sync_synchronize
();
}
bool
t
;
};
int
main
()
{
T t
=
{
false
};
t
.
foo
();
}