Commit ef0ab03 Artur Bać
committed
1 parent 27a16e1 commit ef0ab03 Copy full SHA for ef0ab03
File tree 7 files changed +30
-1
lines changed
7 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ using boost::ut::operator""_test;
5
5
using namespace metatests ;
6
6
using namespace fixedmath ;
7
7
8
+ static constexpr auto msvc_nonsense_non_constexpr_fix_max_ { limits_::max () };
9
+
8
10
int main ()
9
11
{
10
12
test_result result;
@@ -40,7 +42,7 @@ int main()
40
42
expect_lt (limits_::max (), limits_::quiet_NaN ());
41
43
expect_neq (limits_::lowest () + 1 , limits_::quiet_NaN ());
42
44
43
- expect_neq (as_fixed (limits_::max () .v - 65536 ) + 1_fix, limits_::quiet_NaN ());
45
+ expect_neq (as_fixed (msvc_nonsense_non_constexpr_fix_max_ .v - 65536 ) + 1_fix, limits_::quiet_NaN ());
44
46
45
47
expect ( test_resulting_type<fixed_t >( int64_t (1 ) + 1_fix ) );
46
48
expect ( test_resulting_type<fixed_t >( 1_fix + int64_t (1 ) ) );
Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ int main()
50
50
return {};
51
51
};
52
52
result |= run_runtime_test (fn_tmpl);
53
+ #if !defined(_MSC_VER) || defined(__clang__)
54
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
53
55
result |= run_consteval_test (fn_tmpl);
56
+ #endif
54
57
};
55
58
56
59
" atan2" _test = [&result]
@@ -383,7 +386,10 @@ int main()
383
386
return {};
384
387
};
385
388
result |= run_runtime_test (fn_tmpl);
389
+ #if !defined(_MSC_VER) || defined(__clang__)
390
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
386
391
result |= run_consteval_test (fn_tmpl);
392
+ #endif
387
393
};
388
394
}
389
395
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ int main()
44
44
return {};
45
45
};
46
46
result |= run_runtime_test (fn_tmpl);
47
+ #if !defined(_MSC_VER) || defined(__clang__)
48
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
47
49
result |= run_consteval_test (fn_tmpl);
50
+ #endif
48
51
};
49
52
50
53
" angle_to_radians" _test = [&result]
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ int main()
72
72
return {};
73
73
};
74
74
result |= run_runtime_test (fn_tmpl);
75
+ #if !defined(_MSC_VER) || defined(__clang__)
76
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
75
77
result |= run_consteval_test (fn_tmpl);
78
+ #endif
76
79
};
77
80
78
81
" cos" _test = [&result]
@@ -97,7 +100,10 @@ int main()
97
100
return {};
98
101
};
99
102
result |= run_runtime_test (fn_tmpl);
103
+ #if !defined(_MSC_VER) || defined(__clang__)
104
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
100
105
result |= run_consteval_test (fn_tmpl);
106
+ #endif
101
107
};
102
108
}
103
109
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ int main()
55
55
return {};
56
56
};
57
57
result |= run_runtime_test (fn_tmpl);
58
+ #if !defined(_MSC_VER) || defined(__clang__)
59
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
58
60
result |= run_consteval_test (fn_tmpl);
61
+ #endif
59
62
};
60
63
}
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ int main()
30
30
return {};
31
31
};
32
32
result |= run_runtime_test (fn_tmpl);
33
+ #if !defined(_MSC_VER) || defined(__clang__)
34
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
33
35
result |= run_consteval_test (fn_tmpl);
36
+ #endif
34
37
};
35
38
}
36
39
Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ int main()
89
89
return {};
90
90
};
91
91
result |= run_runtime_test (fn_tmpl);
92
+ #if !defined(_MSC_VER) || defined(__clang__)
93
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
92
94
result |= run_consteval_test (fn_tmpl);
95
+ #endif
93
96
};
94
97
" fixed_to_arithmetic floating point" _test = [&result]
95
98
{
@@ -123,6 +126,9 @@ int main()
123
126
return {};
124
127
};
125
128
result |= run_runtime_test (fn_tmpl);
129
+ #if !defined(_MSC_VER) || defined(__clang__)
130
+ // skip msvc toolset undebugable nonsense consteval errors for completely valid code
126
131
result |= run_consteval_test (fn_tmpl);
132
+ #endif
127
133
};
128
134
}
You can’t perform that action at this time.
0 commit comments