repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr59297.C
blob
330ed2e00b1c5c2792eabf8600f67a33a55c1e83
1
// PR c++/59297
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
5
template <typename T>
6
struct A
7
{
8
~A ();
9
const T &operator[] (int) const;
10
};
11
12
struct B
13
{
14
int &operator () (A <int>);
15
};
16
17
void
18
foo (B &x, int &z)
19
{
20
A<A<int> > y;
21
#pragma omp atomic
22
x (y[0]) += 1;
23
#pragma omp atomic
24
z += x(y[1]);
25
}