blob: 91c479e78efed4c7de742a6053f6edb46d4cc283 [file] [log] [blame]
template <typename T>
struct A { int foo (); int c; };
template <typename T>
int
A<T>::foo ()
{
int j;
#pragma omp atomic read
j = A::c;
return j;
}