repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix type compatibility for types with flexible array member 2/2 [PR113688,PR114713...
[gcc.git]
/
libgomp
/
testsuite
/
libgomp.c++
/
pr35185.C
blob
f22c7720787b7971e09f724e5627160cfbe55be5
1
// PR middle-end/35185
2
// { dg-do run }
3
4
extern "C" void abort ();
5
6
struct S
7
{
8
S () : s (6) {}
9
~S () {}
10
int s;
11
};
12
13
__attribute__((noinline))
14
bool
15
bar (S s)
16
{
17
return s.s != 6;
18
}
19
20
int
21
main ()
22
{
23
S s;
24
int err = 0;
25
#pragma omp parallel shared (s)
26
{
27
if (bar (s))
28
#pragma omp atomic
29
err++;
30
}
31
if (err)
32
abort ();
33
}