5 #if __cplusplus >= 201103L
10 #pragma omp declare variant (foo) match (user={condition(0)}) // { dg-error "'declare variant' on constructor" }
12 #pragma omp declare variant (foo) match (user={condition(0)}) // { dg-error "'declare variant' on destructor" }
14 #pragma omp declare variant (bar) match (user={condition(0)}) // { dg-error "'declare variant' on constructor" }
16 #pragma omp declare variant (quux) match (user={condition(0)}) // { dg-error "'declare variant' on constructor" }
18 #if __cplusplus >= 201103L
19 #pragma omp declare variant (baz) match (user={condition(0)}) // { dg-error "'declare variant' on defaulted" "" { target c++11 } }
20 S &operator= (const S &x) = default;
21 #pragma omp declare variant (qux) match (user={condition(0)}) // { dg-error "'declare variant' on deleted" "" { target c++11 } }
22 S &operator= (S &&) = delete;
27 #pragma omp declare variant (corge) match (user={condition(0)})