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