2 // { dg-do compile { target c++20_down } }
3 // { dg-options "-fopenmp" }
5 struct S { int *p; S (); S (S &); };
11 #pragma omp task shared (s)
13 // This fails in C++23, because "cannot bind non-const lvalue reference of
14 // type 'S&' to an rvalue of type 'S'".