1 | //===----------------------------------------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | // UNSUPPORTED: c++03, c++11, c++14, c++17 |
10 | |
11 | #include <numbers> |
12 | |
13 | struct user { |
14 | int value; |
15 | }; |
16 | |
17 | template <> |
18 | user std::numbers::e_v<user>{}; |
19 | |
20 | template <> |
21 | user std::numbers::log2e_v<user>{}; |
22 | |
23 | template <> |
24 | user std::numbers::log10e_v<user>{}; |
25 | |
26 | template <> |
27 | user std::numbers::pi_v<user>{}; |
28 | |
29 | template <> |
30 | user std::numbers::inv_pi_v<user>{}; |
31 | |
32 | template <> |
33 | user std::numbers::inv_sqrtpi_v<user>{}; |
34 | |
35 | template <> |
36 | user std::numbers::ln2_v<user>{}; |
37 | |
38 | template <> |
39 | user std::numbers::ln10_v<user>{}; |
40 | |
41 | template <> |
42 | user std::numbers::sqrt2_v<user>{}; |
43 | |
44 | template <> |
45 | user std::numbers::sqrt3_v<user>{}; |
46 | |
47 | template <> |
48 | user std::numbers::inv_sqrt3_v<user>{}; |
49 | |
50 | template <> |
51 | user std::numbers::egamma_v<user>{}; |
52 | |
53 | template <> |
54 | user std::numbers::phi_v<user>{}; |
55 | |
56 | int main(int, char**) { return 0; } |
57 | |