Home
last modified time | relevance | path

Searched refs:SomeInt (Results 1 – 23 of 23) sorted by relevance

/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/
H A Dctor.first.last.pass.cpp24 std::ranges::iota_view<SomeInt, SomeInt> view;
26 static_assert(!test_convertible<std::ranges::iota_view<SomeInt, SomeInt>,
27 decltype(std::ranges::iota_view<SomeInt, SomeInt>{}.begin()),
28 decltype(std::ranges::iota_view<SomeInt, SomeInt>{}.end())>(),
31 static_assert(!test_convertible<std::ranges::iota_view<SomeInt>,
32 decltype(std::ranges::iota_view{SomeInt{0}}.begin()),
36 static_assert(!test_convertible<std::ranges::iota_view<SomeInt, IntComparableWith<SomeInt>>,
37 … decltype(std::ranges::iota_view{SomeInt(0), IntComparableWith(SomeInt(10))}.begin()),
38 … decltype(std::ranges::iota_view{SomeInt(0), IntComparableWith(SomeInt(10))}.end())>(),
43 static_assert(test_convertible<std::ranges::iota_view<SomeInt, SomeInt>,
[all …]
H A Dctor.value.bound.pass.cpp29 static_assert(!test_convertible<std::ranges::iota_view<SomeInt, SomeInt>,
30 decltype(std::ranges::iota_view<SomeInt, SomeInt>{}.begin()),
31 decltype(std::ranges::iota_view<SomeInt, SomeInt>{}.end())>(),
34 static_assert(!test_convertible<std::ranges::iota_view<SomeInt>,
35 decltype(std::ranges::iota_view<SomeInt>{}.begin()),
39 static_assert(!test_convertible<std::ranges::iota_view<SomeInt, IntComparableWith<SomeInt>>,
40 … decltype(std::ranges::iota_view{SomeInt(0), IntComparableWith(SomeInt(10))}.begin()),
41 … decltype(std::ranges::iota_view{SomeInt(0), IntComparableWith(SomeInt(10))}.end())>(),
46 static_assert( test_convertible<std::ranges::iota_view<SomeInt, SomeInt>,
47 decltype(std::ranges::iota_view<SomeInt, SomeInt>{}.begin()),
[all …]
H A Dsize.pass.cpp73 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(-20), SomeInt(-10)); in test()
77 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(-10), SomeInt(-10)); in test()
81 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(0), SomeInt(0)); in test()
85 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(10), SomeInt(20)); in test()
89 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(10), SomeInt(10)); in test()
H A Dtypes.h14 struct SomeInt { struct
18 constexpr explicit SomeInt(int value = 0) : value_(value) {} in value_() argument
20 auto operator<=>(const SomeInt&) const = default;
22 friend constexpr SomeInt& operator+=(SomeInt &lhs, const SomeInt& rhs) {
25 friend constexpr SomeInt& operator-=(SomeInt &lhs, const SomeInt& rhs) {
29 friend constexpr SomeInt& operator+=(SomeInt &lhs, difference_type rhs) {
32 friend constexpr SomeInt& operator-=(SomeInt &lhs, difference_type rhs) {
36 friend constexpr SomeInt operator+(SomeInt lhs, SomeInt rhs) {
37 return SomeInt{lhs.value_ + rhs.value_};
39 friend constexpr int operator-(SomeInt lhs, SomeInt rhs) {
[all …]
H A Dctor.value.pass.cpp23 SomeInt value_;
24 constexpr SomeIntComparable() : value_(SomeInt(10)) {} in SomeIntComparable()
29 friend constexpr bool operator==(SomeIntComparable lhs, SomeInt rhs) { in operator ==()
32 friend constexpr bool operator==(SomeInt lhs, SomeIntComparable rhs) { in operator ==()
47 std::ranges::iota_view<SomeInt> io(SomeInt(42)); in test()
55 std::ranges::iota_view<SomeInt, SomeIntComparable> io(SomeInt(0)); in test()
59 static_assert(!std::is_convertible_v<std::ranges::iota_view<SomeInt>, SomeInt>); in test()
60 static_assert( std::is_constructible_v<std::ranges::iota_view<SomeInt>, SomeInt>); in test()
H A Dviews_iota.pass.cpp50 testType<SomeInt>(SomeInt(10)); in test()
51 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
H A Dend.pass.cpp62 testType<SomeInt>(SomeInt(10)); in test()
63 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
H A Dbegin.pass.cpp42 testType<SomeInt>(); in test()
/llvm-project/libcxx/test/std/utilities/optional/optional.comp_with_t/
H A Dcompare.three_way.pass.cpp26 struct SomeInt { struct
29 constexpr explicit SomeInt(int value = 0) : value_(value) {} in SomeInt() argument
31 auto operator<=>(const SomeInt&) const = default;
42 static_assert(std::three_way_comparable_with<std::optional<SomeInt>, std::optional<SomeInt>>);
43 static_assert(HasSpaceship<std::optional<SomeInt>, std::optional<SomeInt>>);
45 static_assert(!HasSpaceship<std::optional<int>, std::optional<SomeInt>>);
51 SomeInt t{3}; in test_custom_integral()
52 std::optional<SomeInt> op{3}; in test_custom_integral()
57 SomeInt t{2}; in test_custom_integral()
58 std::optional<SomeInt> op{3}; in test_custom_integral()
[all …]
/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/sentinel/
H A Dctor.value.pass.cpp28 using Sent = std::ranges::sentinel_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test()
29 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test()
30 auto sent = Sent(IntSentinelWith<SomeInt>(SomeInt(42))); in test()
31 assert(sent == Iter(SomeInt(42))); in test()
34 using Sent = std::ranges::sentinel_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test()
35 static_assert(!std::is_convertible_v<Sent, IntSentinelWith<SomeInt>>); in test()
36 static_assert( std::is_constructible_v<Sent, IntSentinelWith<SomeInt>>); in test()
H A Deq.pass.cpp35 const std::ranges::iota_view io(SomeInt(0), IntComparableWith(SomeInt(10))); in test()
42 std::ranges::iota_view io(SomeInt(0), IntComparableWith(SomeInt(10))); in test()
/llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dctor.value.pass.cpp27 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt>>; in test()
28 auto iter = Iter(SomeInt(42)); in test()
29 assert(*iter == SomeInt(42)); in test()
32 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt>>; in test()
33 static_assert(!std::is_convertible_v<Iter, SomeInt>); in test()
34 static_assert( std::is_constructible_v<Iter, SomeInt>); in test()
H A Dminus.pass.cpp48 std::ranges::iota_view io(SomeInt(0)); in test()
146 std::ranges::iota_view io(SomeInt(0)); in test()
154 std::ranges::iota_view io(SomeInt(0)); in test()
162 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dsubscript.pass.cpp49 testType<SomeInt>(); in test()
H A Ddecrement.pass.cpp44 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dincrement.pass.cpp36 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dplus.pass.cpp38 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dplus_eq.pass.cpp37 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dminus_eq.pass.cpp37 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dstar.pass.cpp82 testType<SomeInt>(); in test()
/llvm-project/clang/test/SemaOpenACC/
H A Dcompute-construct-attach-clause.cpp62 T SomeInt; in Templ() local
70 #pragma acc parallel attach(SomeInt) in Templ()
H A Dcompute-construct-deviceptr-clause.cpp62 T SomeInt; in Templ() local
70 #pragma acc parallel deviceptr(SomeInt) in Templ()
/llvm-project/clang/test/AST/Interp/
H A Darrays.cpp