| 1 |
struct S { int a, b, c, d; }; |
| 2 |
void f1 (int); |
| 3 |
void f1 (double); |
| 4 |
template <typename T> void f2 (T); |
| 5 |
void f3 (int); |
| 6 |
#pragma omp declare variant (f1) match (user={condition(false)}) |
| 7 |
void f4 (int); |
| 8 |
#pragma omp declare variant (::f1) match (user={condition(false)}) |
| 9 |
void f5 (const double); |
| 10 |
#pragma omp declare variant (f2) match (user={condition(false)}) |
| 11 |
void f6 (int); |
| 12 |
#pragma omp declare variant (f2) match (user={condition(false)}) |
| 13 |
void f6 (double); |
| 14 |
#pragma omp declare variant (f2<long>) match (user={condition(false)}) |
| 15 |
void f6 (long); |
| 16 |
#pragma omp declare variant (f3) match (user={condition(false)}) |
| 17 |
void f7 (int); |
| 18 |
void f8 (int); |
| 19 |
namespace N |
| 20 |
{ |
| 21 |
void f8 (int); |
| 22 |
#pragma omp declare variant (f3) match (user={condition(false)}) |
| 23 |
void f9 (int); |
| 24 |
#pragma omp declare variant (f8) match (user={condition(false)}) |
| 25 |
void f10 (int); |
| 26 |
} |
| 27 |
#pragma omp declare variant (f8) match (user={condition(false)}) |
| 28 |
void f11 (int); |
| 29 |
void f12 (S, S &, int); |
| 30 |
#pragma omp declare variant (f12) match (implementation={vendor(gnu)}) |
| 31 |
void f13 (const S, S &, const int); |
| 32 |
// Try ADL |
| 33 |
namespace M |
| 34 |
{ |
| 35 |
struct T { int a; }; |
| 36 |
void f14 (T &, int); |
| 37 |
} |
| 38 |
#pragma omp declare variant (f14) match (implementation={vendor(gnu)}) |
| 39 |
void f15 (M::T &, int); |
| 40 |
struct U |
| 41 |
{ |
| 42 |
void f16 (int, long); |
| 43 |
#pragma omp declare variant (f16) match (user={condition(false)}) |
| 44 |
void f17 (int, long); |
| 45 |
}; |