OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2012-06-14 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
sync-3.C
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
}