Home
last modified time | relevance | path

Searched refs:decltype (Results 26 – 50 of 15900) sorted by relevance

12345678910>>...636

/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp103 template <class T, class = decltype(std::abs(std::declval<T>()))>
109 struct has_abs : decltype(has_abs_imp<T>(0)) {};
120 static_assert((std::is_same<decltype(std::abs((int)0)), int>::value), ""); in test_abs()
121 static_assert((std::is_same<decltype(std::abs((long)0)), long>::value), ""); in test_abs()
130 static_assert((std::is_same<decltype(std::abs((short)0)), int>::value), in test_abs()
134 static_assert((std::is_same<decltype(std::abs((char)0)), int>::value), in test_abs()
164 static_assert((std::is_same<decltype(std::acosf(0)), float>::value), ""); in test_acos()
183 static_assert((std::is_same<decltype(std::asinf(0)), float>::value), ""); in test_asin()
263 static_assert((std::is_same<decltype(std::cosf(0)), float>::value), ""); in test_cos()
702 typedef decltype(std::isinf((double)0)) DoubleRetType; in test_isinf()
[all …]
/dports/devel/libc++/libcxx-10.0.1.src/test/std/numerics/c.math/
H A Dcmath.pass.cpp103 template <class T, class = decltype(std::abs(std::declval<T>()))>
109 struct has_abs : decltype(has_abs_imp<T>(0)) {};
120 static_assert((std::is_same<decltype(std::abs((int)0)), int>::value), ""); in test_abs()
121 static_assert((std::is_same<decltype(std::abs((long)0)), long>::value), ""); in test_abs()
130 static_assert((std::is_same<decltype(std::abs((short)0)), int>::value), in test_abs()
134 static_assert((std::is_same<decltype(std::abs((char)0)), int>::value), in test_abs()
164 static_assert((std::is_same<decltype(std::acosf(0)), float>::value), ""); in test_acos()
183 static_assert((std::is_same<decltype(std::asinf(0)), float>::value), ""); in test_asin()
263 static_assert((std::is_same<decltype(std::cosf(0)), float>::value), ""); in test_cos()
702 typedef decltype(std::isinf((double)0)) DoubleRetType; in test_isinf()
[all …]
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp103 template <class T, class = decltype(std::abs(std::declval<T>()))>
109 struct has_abs : decltype(has_abs_imp<T>(0)) {};
120 static_assert((std::is_same<decltype(std::abs((int)0)), int>::value), ""); in test_abs()
121 static_assert((std::is_same<decltype(std::abs((long)0)), long>::value), ""); in test_abs()
130 static_assert((std::is_same<decltype(std::abs((short)0)), int>::value), in test_abs()
134 static_assert((std::is_same<decltype(std::abs((char)0)), int>::value), in test_abs()
164 static_assert((std::is_same<decltype(std::acosf(0)), float>::value), ""); in test_acos()
183 static_assert((std::is_same<decltype(std::asinf(0)), float>::value), ""); in test_asin()
263 static_assert((std::is_same<decltype(std::cosf(0)), float>::value), ""); in test_cos()
702 typedef decltype(std::isinf((double)0)) DoubleRetType; in test_isinf()
[all …]
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp103 template <class T, class = decltype(std::abs(std::declval<T>()))>
109 struct has_abs : decltype(has_abs_imp<T>(0)) {};
120 static_assert((std::is_same<decltype(std::abs((int)0)), int>::value), ""); in test_abs()
121 static_assert((std::is_same<decltype(std::abs((long)0)), long>::value), ""); in test_abs()
130 static_assert((std::is_same<decltype(std::abs((short)0)), int>::value), in test_abs()
134 static_assert((std::is_same<decltype(std::abs((char)0)), int>::value), in test_abs()
164 static_assert((std::is_same<decltype(std::acosf(0)), float>::value), ""); in test_acos()
183 static_assert((std::is_same<decltype(std::asinf(0)), float>::value), ""); in test_asin()
263 static_assert((std::is_same<decltype(std::cosf(0)), float>::value), ""); in test_cos()
702 typedef decltype(std::isinf((double)0)) DoubleRetType; in test_isinf()
[all …]
/dports/devel/llvm13/llvm-project-13.0.1.src/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp103 template <class T, class = decltype(std::abs(std::declval<T>()))>
109 struct has_abs : decltype(has_abs_imp<T>(0)) {};
120 static_assert((std::is_same<decltype(std::abs((int)0)), int>::value), ""); in test_abs()
121 static_assert((std::is_same<decltype(std::abs((long)0)), long>::value), ""); in test_abs()
130 static_assert((std::is_same<decltype(std::abs((short)0)), int>::value), in test_abs()
134 static_assert((std::is_same<decltype(std::abs((char)0)), int>::value), in test_abs()
164 static_assert((std::is_same<decltype(std::acosf(0)), float>::value), ""); in test_acos()
183 static_assert((std::is_same<decltype(std::asinf(0)), float>::value), ""); in test_asin()
263 static_assert((std::is_same<decltype(std::cosf(0)), float>::value), ""); in test_cos()
702 typedef decltype(std::isinf((double)0)) DoubleRetType; in test_isinf()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/devel/llvm12/llvm-project-12.0.1.src/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
74 auto f16(auto x, auto y) -> type_list<decltype(x), decltype(y)>;
189 void f10(C decltype(auto) x);
[all …]
/dports/devel/llvm13/llvm-project-13.0.1.src/clang/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/lang/clang-mesa/clang-13.0.1.src/test/CXX/dcl/dcl.fct/
H A Dp17.cpp9 decltype(auto) f1(auto x) { return x; } in f1()
10 static_assert(is_same_v<decltype(f1(1)), int>);
11 static_assert(is_same_v<decltype(f1('c')), char>);
13 decltype(auto) f2(auto &x) { return x; } in f2()
19 decltype(auto) f3(const auto &x) { return x; } in f3()
29 decltype(auto) f6(auto (*x)()) { return x; } in f6()
52decltype(auto) f11(decltype(auto) x) { return x; } // expected-error{{'decltype(auto)' not allowed… in f11()
65 auto f14(auto y) -> type_list<T, decltype(y)>;
71 …static_assert(is_same_v<decltype(f15<int>('c', nullptr)), type_list<int, decltype(nullptr), char>>…
72 …static_assert(is_same_v<decltype(f15<int, decltype(nullptr)>('c', nullptr)), type_list<int, declty…
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-cxx14.cpp26 decltype(auto) x3d = i;
27 using Int = decltype(x3a);
28 using Int = decltype(x3d);
31 decltype(auto) x4d = (i);
32 using Int = decltype(x4a);
36 decltype(auto) x5d = f();
37 using Int = decltype(x5a);
38 using IntRRef = decltype(x5d);
46 using IntPtr = decltype(x7a);
50 decltype(auto) f1();
[all …]
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp24 decltype(auto) x3d = i;
25 using Int = decltype(x3a);
26 using Int = decltype(x3d);
29 decltype(auto) x4d = (i);
30 using Int = decltype(x4a);
31 using IntLRef = decltype(x4d);
34 decltype(auto) x5d = f();
35 using Int = decltype(x5a);
36 using IntRRef = decltype(x5d);
44 using IntPtr = decltype(x7a);
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-cxx14.cpp26 decltype(auto) x3d = i;
27 using Int = decltype(x3a);
28 using Int = decltype(x3d);
31 decltype(auto) x4d = (i);
32 using Int = decltype(x4a);
36 decltype(auto) x5d = f();
37 using Int = decltype(x5a);
38 using IntRRef = decltype(x5d);
46 using IntPtr = decltype(x7a);
50 decltype(auto) f1();
[all …]
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp24 decltype(auto) x3d = i;
25 using Int = decltype(x3a);
26 using Int = decltype(x3d);
29 decltype(auto) x4d = (i);
30 using Int = decltype(x4a);
31 using IntLRef = decltype(x4d);
34 decltype(auto) x5d = f();
35 using Int = decltype(x5a);
36 using IntRRef = decltype(x5d);
44 using IntPtr = decltype(x7a);
[all …]
/dports/devel/llvm12/llvm-project-12.0.1.src/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp24 decltype(auto) x3d = i;
25 using Int = decltype(x3a);
26 using Int = decltype(x3d);
29 decltype(auto) x4d = (i);
30 using Int = decltype(x4a);
31 using IntLRef = decltype(x4d);
34 decltype(auto) x5d = f();
35 using Int = decltype(x5a);
36 using IntRRef = decltype(x5d);
44 using IntPtr = decltype(x7a);
[all …]
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp24 decltype(auto) x3d = i;
25 using Int = decltype(x3a);
26 using Int = decltype(x3d);
29 decltype(auto) x4d = (i);
30 using Int = decltype(x4a);
31 using IntLRef = decltype(x4d);
34 decltype(auto) x5d = f();
35 using Int = decltype(x5a);
36 using IntRRef = decltype(x5d);
44 using IntPtr = decltype(x7a);
[all …]
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp24 decltype(auto) x3d = i;
25 using Int = decltype(x3a);
26 using Int = decltype(x3d);
29 decltype(auto) x4d = (i);
30 using Int = decltype(x4a);
31 using IntLRef = decltype(x4d);
34 decltype(auto) x5d = f();
35 using Int = decltype(x5a);
36 using IntRRef = decltype(x5d);
44 using IntPtr = decltype(x7a);
[all …]

12345678910>>...636