| /llvm-project/libcxx/test/libcxx/algorithms/ |
| H A D | robust_against_cpp20_hostile_iterators.compile.pass.cpp | 1 //===---------- 81 Cpp20HostileIterator<int*> it; test() local [all...] |
| H A D | pstl.iterator-requirements.verify.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 // UNSUPPORTED: libcpp-has-no-incomplete-pstl 22 // ADDITIONAL_COMPILE_FLAGS: -Xclang -verify-ignore-unexpected=error 36 constexpr int const& operator*() const; // prevent it from being an output iterator 40 auto pred = [](auto&&...) -> bool { return true; }; in f() 41 auto func = [](auto&&...) -> int { return 1; }; in f() 42 int* it = nullptr; in f() local 48 …(void)std::any_of(pol, non_fwd, non_fwd, pred); // expected-error@*:* {{static assertion failed: … in f() [all …]
|
| /llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.sentinel/ |
| H A D | concept_conformance.compile.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 using It = int*; in test() typedef 25 static_assert( std::sentinel_for<std::move_sentinel<It>, std::move_iterator<It>>); in test() 26 static_assert( std::sized_sentinel_for<std::move_sentinel<It>, std::move_iterator<It>>); in test() 27 …tatic_assert( std::sentinel_for<std::move_sentinel<sentinel_wrapper<It>>, std::move_iterator<It>>); in test() 28 …assert(!std::sized_sentinel_for<std::move_sentinel<sentinel_wrapper<It>>, std::move_iterator<It>>); in test() 29 … static_assert( std::sentinel_for<std::move_sentinel<sized_sentinel<It>>, std::move_iterator<It>>); in test() 30 …c_assert( std::sized_sentinel_for<std::move_sentinel<sized_sentinel<It>>, std::move_iterator<It>>); in test() [all …]
|
| /llvm-project/libcxx/test/std/algorithms/ |
| H A D | ranges_robust_against_nonbool.compile.pass.cpp | 1 //===---------- 31 f(Iterator it,Range in,Iterator out,std::size_t n,Value const & val,std::initializer_list<Value> ilist) f() argument [all...] |
| /llvm-project/libcxx/test/std/iterators/predef.iterators/iterators.common/ |
| H A D | types.h | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 template <class It> 21 It it_; 25 typedef typename std::iterator_traits<It>::value_type value_type; 26 typedef typename std::iterator_traits<It>::difference_type difference_type; 27 typedef It pointer; 28 typedef typename std::iterator_traits<It>::reference reference; 30 friend constexpr It base(const simple_iterator& i) {return i.it_;} in base() [all …]
|
| H A D | iter_move.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 41 using It = int*; in test() typedef 42 using CommonIt = std::common_iterator<It, sentinel_wrapper<It>>; in test() 44 CommonIt it = CommonIt(It(a)); in test() local 45 ASSERT_NOEXCEPT(iter_move(it)); in test() 46 ASSERT_NOEXCEPT(std::ranges::iter_move(it)); in test() 47 ASSERT_SAME_TYPE(decltype(iter_move(it)), int&&); in test() 48 ASSERT_SAME_TYPE(decltype(std::ranges::iter_move(it)), int&&); in test() [all …]
|
| /llvm-project/llvm/test/MC/ARM/ |
| H A D | implicit-it-generation.s | 1 @ RUN: llvm-mc -triple thumbv7a--none-eabi -arm-implicit-it=always < %s -show-encoding | FileCheck … 5 @ CHECK-LABEL: test1 7 @ CHECK: it eq 12 @ CHECK-LABEL: test2 25 @ CHECK-LABEL: test3 38 @ CHECK-LABEL: test4 43 @ CHECK: it eq 45 @ CHECK: it lt 47 @ CHECK: it eq 49 @ CHECK: it ge [all …]
|
| H A D | unpred-control-flow-in-it-block.s | 1 @ RUN: not llvm-mc -triple=thumbv7m--none-eabi < %s 2>&1 | FileCheck %s 4 @ an IT block, but not the last instruction in the block. 8 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 10 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 12 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 16 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 18 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 20 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 24 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… 26 @ CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must be outside of IT block or the last instru… [all …]
|
| H A D | thumb2-narrow-dp.ll | 1 // RUN: llvm-mc -triple thumbv7 -show-encoding < %s | FileCheck %s 3 // Test each of the Thumb1 data-processing instructions 7 // - Rd == Rn 8 // - Rd, Rn and Rm are < r8 11 // - Rd == Rn || Rd == Rm 12 // - Rd, Rn and Rm are < r8 24 IT EQ 25 // CHECK: it eq @ encoding: [0x08,0xbf] 28 IT EQ 29 // CHECK: it eq @ encoding: [0x08,0xbf] [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
| H A D | increment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // REQUIRES: can-create-symlinks 11 // UNSUPPORTED: no-filesystem 12 // UNSUPPORTED: availability-filesystem-missing 16 // XFAIL: LIBCXX-ANDROID-FIXME && android-device-api={{21|22}} 57 recursive_directory_iterator it(testDir, ec); in test_prefix_increment() local 62 assert(it != endIt); in test_prefix_increment() 63 const path entry = *it; in test_prefix_increment() [all …]
|
| H A D | copy_assign.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // REQUIRES: can-create-symlinks 11 // UNSUPPORTED: no-filesystem 12 // UNSUPPORTED: availability-filesystem-missing 32 // in a non-default state. The returned 'it' is in a in createInterestingIterator() 34 // it.options() == directory_options::skip_permission_denied in createInterestingIterator() 35 // it.depth() == 1 in createInterestingIterator() 36 // it.recursion_pending() == true in createInterestingIterator() [all …]
|
| H A D | recursion_pending.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // REQUIRES: can-create-symlinks 11 // UNSUPPORTED: no-filesystem 12 // UNSUPPORTED: availability-filesystem-missing 33 recursive_directory_iterator it(static_env.Dir); in initial_value_test() local 34 assert(it.recursion_pending() == true); in initial_value_test() 45 recursive_directory_iterator it(rec_pending_it); in value_after_copy_construction_and_assignment_test() local 46 assert(it.recursion_pending() == true); in value_after_copy_construction_and_assignment_test() [all …]
|
| H A D | move_assign.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // REQUIRES: can-create-symlinks 11 // UNSUPPORTED: no-filesystem 12 // UNSUPPORTED: availability-filesystem-missing 30 // The filesystem specification explicitly allows for self-move on 31 // the directory iterators. Turn off this warning so we can test it. 32 TEST_CLANG_DIAGNOSTIC_IGNORED("-Wself-move") 36 // in a non-default state. The returned 'it' is in a in createInterestingIterator() [all …]
|
| /llvm-project/libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.distance/ |
| H A D | iterator_sentinel.pass.cpp | 1 //===---------- 196 using It = cpp20_input_iterator<int*>; // non-copyable, thus not a sentinel for itself test() typedef 205 using It = cpp20_input_iterator<int*>; // non-copyable test() typedef 216 using It = cpp17_input_iterator<int*>; // not a sentinel for itself test() typedef [all...] |
| /llvm-project/clang/test/Driver/ |
| H A D | arm-target-as-mimplicit-it.s | 2 /// -Wa,-implicit-it= 3 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplici [all...] |
| /llvm-project/libcxx/test/std/containers/ |
| H A D | iterator.rel_ops.compile.pass.cpp | 1 //===---------- 40 test_eq(It it,ConstIt cit) test_eq() argument 52 test_lt(It it,ConstIt cit) test_lt() argument 85 typename Container::iterator it = c.begin(); test_forward() local 93 typename Container::iterator it = c.begin(); test_random_access() local 117 std::filesystem::directory_iterator it; test_directory_iterators() local 135 std::span<int>::iterator it = c.begin(); // span has no const_iterator test_span() local [all...] |
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.zip/iterator/ |
| H A D | increment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 35 auto it = v.begin(); in test() local 36 using Iter = decltype(it); in test() 38 assert(&(std::get<0>(*it)) == &(a[0])); in test() 39 assert(&(std::get<1>(*it)) == &(b[0])); in test() 40 assert(std::get<2>(*it) == 0); in test() 42 static_assert(std::is_same_v<decltype(++it), Iter&>); in test() 44 auto& it_ref = ++it; in test() [all …]
|
| /llvm-project/clang/test/SemaObjC/ |
| H A D | non-trivial-c-union.m | 1 // RUN: %clang_cc1 -fsyntax-only -fblocks -fobjc-arc -fobjc-runtime-has-weak - [all...] |
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.split/iterator/ |
| H A D | increment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 int buffer[] = {0, 1, 2, -1, 4, 5, -1, 7}; in testOne() 29 std::ranges::split_view sv(input, -1); in testOne() 32 // ++it in testOne() 34 auto it = sv.begin(); in testOne() local 36 decltype(auto) it1 = ++it; in testOne() 38 assert(&it1 == &it); in testOne() 40 assert(base((*it).begin()) == buffer + 4); in testOne() [all …]
|
| /llvm-project/llvm/test/CodeGen/ARM/ |
| H A D | 2013-05-05-IfConvertBug.ll | 2 ; RUN: llc < %s -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 | FileCheck %s 3 ; RUN: llc < %s -mtriple=thumbv8 | FileCheck -check-prefix=CHECK-V8 %s 4 ; RUN: llc < %s -mtriple=thumbv7 -arm-restrict-it | FileCheck -check-prefix=CHECK-RESTRICT-IT %s 7 ; CHECK-LABEL: t1: 9 ; CHECK-NEXT: ldr r3, LCPI0_0 10 ; CHECK-NEXT: cmp r0, #0 11 ; CHECK-NEXT: LPC0_0: 12 ; CHECK-NEXT: add r3, pc 13 ; CHECK-NEXT: str r3, [r2] 14 ; CHECK-NEXT: mov.w r2, #1 [all …]
|
| /llvm-project/clang/test/SemaCXX/ |
| H A D | warn-unsafe-buffer-usage-fixits-deref-simple-ptr-arith.cpp | 1 // RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage \ 2 // RUN: -fsafe-buffer-usage-suggestions \ 3 // RUN: -fdiagnostics-parseable-fixits \ 4 // RUN: -fsyntax-only %s 2>&1 | FileCheck %s 9 // when it's on the right side 13 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:8}:"std::span<int> " in basic() 15 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:5}:"" in basic() 16 // CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:8-[[@LINE-2]]:9}:"[" in basic() 17 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:11}:"]" in basic() 23 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:8}:"std::span<int> " in char_ranges() [all …]
|
| /llvm-project/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/ |
| H A D | iter.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 template <class It> 27 static_assert( std::is_constructible<std::move_iterator<It>, const It&>::value, ""); in test() 28 static_assert( std::is_constructible<std::move_iterator<It>, It&&>::value, ""); in test() 29 static_assert(!std::is_convertible<const It&, std::move_iterator<It> >::value, ""); in test() 30 static_assert(!std::is_convertible<It&&, std::move_iterator<It> >::value, ""); in test() 34 It it = It(s); in test() local 35 std::move_iterator<It> r(it); in test() [all …]
|
| /llvm-project/libcxx/test/support/ |
| H A D | test_iterators.h | 1 //===---------- 39 cpp17_output_iterator(It it) cpp17_output_iterator() argument 82 cpp17_input_iterator(It it) cpp17_input_iterator() argument 126 forward_iterator(It it) forward_iterator() argument 166 bidirectional_iterator(It it) bidirectional_iterator() argument 208 random_access_iterator(It it) random_access_iterator() argument 264 cpp20_random_access_iterator(It it) cpp20_random_access_iterator() argument 360 contiguous_iterator(It it) contiguous_iterator() argument 418 three_way_contiguous_iterator(It it) three_way_contiguous_iterator() argument 647 cpp20_input_iterator(It it) cpp20_input_iterator() argument [all...] |
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | increment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 48 // Increment an iterator when it won't find another satisfied value after begin() in test() 53 FilterIterator it = view.begin(); in test() local 54 FilterIterator& result = ++it; in test() 55 ASSERT_SAME_TYPE(FilterIterator&, decltype(++it)); in test() 56 assert(&result == &it); in test() 60 // Increment the iterator and it finds another value after begin() in test() 65 FilterIterator it = view.begin(); in test() local [all …]
|
| /llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/ |
| H A D | ranges.binary_search.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 32 template <class It, class Sent = It> 33 concept HasLowerBoundIt = requires(It it, Sent sent) { std::ranges::binary_search(it, sent, 1); }; 50 concept HasLowerBoundPred = requires(int* it, Pred pred) {std::ranges::binary_search(it, it, 1, pre… 56 template <class It, class Sent = It> 61 std::same_as<bool> auto ret = std::ranges::binary_search(It(a), Sent(It(a + 6)), 3); in test_iterators() 66 auto range = std::ranges::subrange(It(a), Sent(It(a + 6))); in test_iterators() 74 assert(std::ranges::binary_search(It(a), Sent(It(a + 6)), 2, std::ranges::greater{})); in test_iterators() [all …]
|