Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 3029) sorted by relevance

12345678910>>...122

/llvm-project/libcxx/test/std/utilities/expected/expected.expected/monadic/
H A Dand_then.pass.cpp11 // <expected>
20 #include <expected>
28 constexpr std::expected<int, int> operator()(int&) { return 1; } in operator ()()
29 std::expected<int, int> operator()(const int&) = delete;
30 std::expected<int, int> operator()(int&&) = delete;
31 std::expected<int, int> operator()(const int&&) = delete;
35 std::expected<int, int> operator()(int&) = delete;
36 constexpr std::expected<int, int> operator()(const int&) { return 1; } in operator ()()
37 std::expected<int, int> operator()(int&&) = delete;
38 std::expected<in
[all...]
H A Dor_else.pass.cpp11 // <expected>
20 #include <expected>
28 constexpr std::expected<int, int> operator()(int&) { return 1; } in operator ()()
29 std::expected<int, int> operator()(const int&) = delete;
30 std::expected<int, int> operator()(int&&) = delete;
31 std::expected<int, int> operator()(const int&&) = delete;
35 std::expected<int, int> operator()(int&) = delete;
36 constexpr std::expected<int, int> operator()(const int&) { return 1; } in operator ()()
37 std::expected<int, int> operator()(int&&) = delete;
38 std::expected<in
[all...]
/llvm-project/flang/test/Fir/
H A Dinvalid-types.fir4 // expected-error@+1 {{expected non-function type}}
9 // expected-error@+2 {{expected non-function type}}
10 // expected-error@+1 {{failed to parse fir_BoxType parameter 'eleTy' which is to be a `mlir::Type`}}
15 // expected-error@+1 {{expected integer value}}
20 // expected-error@+1 {{expected integer value}}
25 // expected
[all...]
/llvm-project/libc/test/src/stdio/scanf_core/
H A Dparser_test.cpp56 LIBC_NAMESPACE::scanf_core::FormatSection expected; in TEST() local
57 expected.has_conv = false; in TEST()
59 expected.raw_string = str; in TEST()
61 ASSERT_SFORMAT_EQ(expected, format_arr[0]); in TEST()
97 LIBC_NAMESPACE::scanf_core::FormatSection expected; in TEST() local
98 expected.has_conv = true; in TEST()
100 expected.raw_string = str; in TEST()
101 expected.output_ptr = &arg1; in TEST()
102 expected.conv_name = 'd'; in TEST()
104 ASSERT_SFORMAT_EQ(expected, format_arr[0]); in TEST()
[all …]
/llvm-project/llvm/test/MC/Mips/msa/
H A Dinvalid.s8 addvi.b $w1, $w2, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
9 addvi.b $w1, $w2, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
10 addvi.h $w1, $w2, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
11 addvi.h $w1, $w2, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
12 addvi.w $w1, $w2, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
13 addvi.w $w1, $w2, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
14 addvi.d $w1, $w2, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
15 addvi.d $w1, $w2, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
16 andi.b $w1, $w2, -1 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
17 andi.b $w1, $w2, 256 # CHECK: :[[@LINE]]:22: error: expected 8-bit unsigned immediate
[all …]
H A Dinvalid-64.s8 dlsa $2, $3, $4, 0 # CHECK: :[[@LINE]]:25: error: expected immediate in range 1 .. 4
9 dlsa $2, $3, $4, 5 # CHECK: :[[@LINE]]:25: error: expected immediate in range 1 .. 4
10 insve.b $w25[-1], $w9[0] # CHECK: :[[@LINE]]:18: error: expected 4-bit unsigned immediate
11 insve.b $w25[16], $w9[0] # CHECK: :[[@LINE]]:18: error: expected 4-bit unsigned immediate
12 insve.h $w24[-1], $w2[0] # CHECK: :[[@LINE]]:18: error: expected 3-bit unsigned immediate
13 insve.h $w24[8], $w2[0] # CHECK: :[[@LINE]]:18: error: expected 3-bit unsigned immediate
14 insve.w $w0[-1], $w13[0] # CHECK: :[[@LINE]]:17: error: expected 2-bit unsigned immediate
15 insve.w $w0[4], $w13[0] # CHECK: :[[@LINE]]:17: error: expected 2-bit unsigned immediate
16 insve.d $w3[-1], $w18[0] # CHECK: :[[@LINE]]:17: error: expected 1-bit unsigned immediate
17 insve.d $w3[2], $w18[0] # CHECK: :[[@LINE]]:17: error: expected 1-bit unsigned immediate
[all …]
/llvm-project/mlir/test/IR/
H A Dinvalid-builtin-attributes.mlir4 "foo"(){bar = dense<[4]> : i32} : () -> () // expected-error {{elements literal must be a shaped type}}
10 "foo"(){bar = dense<[4]> : tensor<?xi32>} : () -> () // expected-error {{elements literal type must have static shape}}
16 "foo"(){bar = dense<[4]> : tensor<5xi32>} : () -> () // expected-error {{inferred shape of elements literal ([1]) does not match type ([5])}}
22 "foo"(){bar = dense<[4, [5]]> : tensor<2xi32>} : () -> () // expected-error {{tensor literal is invalid; ranks are not consistent between elements}}
28 "foo"(){bar = dense<[tf_opaque]> : tensor<1xi32>} : () -> () // expected-error {{expected element literal of primitive type}}
34 // expected-error@+1 {{expected integer elements, but parsed floating-point}}
41 // expected-error@+1 {{expected intege
[all...]
H A Dinvalid.mlir7 cf.br ^missing // expected-error {{reference to an undefined block}}
15 ^bb42: // expected-error {{redefinition of block '^bb42'}}
21 func.func @no_terminator() { // expected-error {{empty block: expect at least a terminator}}
32 ^bb42 (%bb42 : i32: // expected-error {{expected ')'}}
39 ^bb42 (i32): // expected-error {{expected SSA operand}}
46 ^bb42 (%0): // expected-error {{expected ':' and type for SSA operand}}
54 cf.br ^bb2( // expected-error {{expected ':'}}
61 // expected-error@-1 {{entry block of region may not have predecessors}}
72 %y = arith.constant 1 : i32 // expected-error {{block with no terminator}}
81 %y = arith.constant 1 : i32 // expected-error {{block with no terminator}}
[all …]
H A Dinvalid-builtin-types.mlir3 func.func @illegaltype(i) // expected-error {{expected non-function type}}
8 %0 = arith.constant dense<0> : <vector 4 x f32> : vector<4 x f32> // expected-error {{expected non-function type}}
13 func.func @nestedtensor(tensor<tensor<i8>>) -> () // expected-error {{invalid tensor element type}}
17 // expected-error@+1 {{invalid dimension}}
22 func.func @illegalmemrefelementtype(memref<?xtensor<i8>>) -> () // expected-error {{invalid memref element type}}
26 func.func @illegalunrankedmemrefelementtype(memref<*xtensor<i8>>) -> () // expected-error {{invalid memref element type}}
30 func.func @memrefs(memref<2x4xi8, >) // expected-error {{expected lis
[all...]
/llvm-project/clang/test/Headers/
H A Dstdargneeds.c24expected-modules-error{{implicitly declaring library function}} expected-modules-note{{provide a d… in f()
26expected-modules-error{{implicit declaration of function}} expected-modules-error{{expected expres… in f()
28expected-modules-error{{implicitly declaring library function}} expected-modules-note{{provide a d… in f()
30expected-modules-error{{implicit declaration of function}} expected-modules-error{{undeclared iden… in f()
32expected-modules-error{{implicitly declaring library function}} expected-modules-note{{provide a d… in f()
41expected-modules-error{{'va_list' must be declared before it is used}} expected-modules-note@__std… in f()
43expected-modules-error{{implicitly declaring library function}} expected-modules-note{{provide a d… in f()
45expected-modules-error{{implicit declaration of function}} expected-modules-error{{expected expres… in f()
47expected-modules-error{{implicitly declaring library function}} expected-modules-note{{provide a d… in f()
49 expected-modules-error{{implicit declaration of function}} in f()
[all …]
/llvm-project/libcxx/test/libcxx/utilities/expected/expected.expected/
H A Dnoexcept.extension.compile.pass.cpp11 // test libc++ noexcept extensions on operations of std::expected<T, E>
13 #include <expected>
19 // expected();
20 static_assert(std::is_nothrow_default_constructible_v<std::expected<int, int>>);
21 static_assert(!std::is_nothrow_default_constructible_v<std::expected<DefaultMayThrow, int>>);
23 // expected(const expected&)
24 static_assert(std::is_nothrow_copy_constructible_v<std::expected<int, int>>);
25 static_assert(!std::is_nothrow_copy_constructible_v<std::expected<CopyMayThrow, int>>);
26 static_assert(!std::is_nothrow_copy_constructible_v<std::expected<in
[all...]
H A Dno_unique_address.compile.pass.cpp17 #include <expected>
41 static_assert(sizeof(std::expected<Empty, Empty>) == sizeof(bool));
42 static_assert(sizeof(std::expected<Empty, A>) == 2 * sizeof(int) + alignof(std::expected<Empty, A>));
43 static_assert(sizeof(std::expected<Empty, B>) == sizeof(B));
44 static_assert(sizeof(std::expected<A, Empty>) == 2 * sizeof(int) + alignof(std::expected<A, Empty>));
45 static_assert(sizeof(std::expected<A, A>) == 2 * sizeof(int) + alignof(std::expected<A, A>));
46 static_assert(sizeof(std::expected<
[all...]
/llvm-project/llvm/test/MC/Mips/micromips/
H A Dinvalid.s4 …addiur1sp $7, 260 # CHECK: :[[@LINE]]:17: error: expected both 8-bit unsigned immediate and mult…
5 …addiur1sp $7, 241 # CHECK: :[[@LINE]]:17: error: expected both 8-bit unsigned immediate and mult…
7 addius5 $2, -9 # CHECK: :[[@LINE]]:15: error: expected 4-bit signed immediate
8 addius5 $2, 8 # CHECK: :[[@LINE]]:15: error: expected 4-bit signed immediate
9 break -1 # CHECK: :[[@LINE]]:9: error: expected 10-bit unsigned immediate
10 break 1024 # CHECK: :[[@LINE]]:9: error: expected 10-bit unsigned immediate
11 break -1, 5 # CHECK: :[[@LINE]]:9: error: expected 10-bit unsigned immediate
12 break 1024, 5 # CHECK: :[[@LINE]]:9: error: expected 10-bit unsigned immediate
13 break 7, -1 # CHECK: :[[@LINE]]:12: error: expected 10-bit unsigned immediate
14 break 7, 1024 # CHECK: :[[@LINE]]:12: error: expected 10-bit unsigned immediate
[all …]
/llvm-project/clang/test/SemaObjC/
H A Dcrash-on-type-args-protocols.m17expected-error {{expected a type}} expected-error {{use of undeclared identifier 'P'}} expected-er…
19 } // expected-error {{expected '>'}}
23expected-error {{unknown type name 'P'}} expected-error {{unexpected interface name 'X': expected
25 } // expected-error {{expected '>'}}
29expected-error {{unknown type name 'P'}} expected-error {{expected expression}} expected-error {{u…
31 } // expected-error {{expected '>'}}
35expected-error {{unknown type name 'P'}} expected-error {{expected ')'}} expected-note {{to match …
37 } // expected-error {{expected '>'}}
40 // expected-error {{expected parameter declarator}} // expected-error {{expected ')'}} // expected-…
/llvm-project/clang/test/Analysis/
H A Duninit-vals.m36 int z; // expected-note{{'z' declared without an initial value}}
37 v1.y = z; // expected-warning{{Assigned value is garbage or undefined}}
38 // expected-note@-1{{Assigned value is garbage or undefined}}
44 test_unit_aux2(v2.x + v1.y); // expected-warning{{The left operand of '+' is a garbage value}}
45 // expected-note@-1{{The left operand of '+' is a garbage value}}
50 test_unit_aux2(v1.y + v2.x); // expected-warning{{The right operand of '+' is a garbage value}}
51 // expected-note@-1{{The right operand of '+' is a garbage value}}
62 struct TestUninit x; // expected-note{{'x' initialized here}}
63 …test_uninit_struct_arg_aux(x); // expected-warning{{Passed-by-value struct argument contains unini…
64 …// expected-note@-1{{Passed-by-value struct argument contains uninitialized data (e.g., field: 'x'…
[all …]
H A Dglobal_region_invalidation.mm12 clang_analyzer_eval(p == 0); // expected-warning{{TRUE}}
20 clang_analyzer_eval(globalIntRef == 42); // expected-warning{{UNKNOWN}}
31 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}}
32 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}}
38 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}}
39 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE}}
42 clang_analyzer_eval(globalInt == 42); // expected-warning{{UNKNOWN}}
43 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{UNKNOWN}}
50 clang_analyzer_eval(globalInt == 42); // expected-warning{{TRUE}}
51 clang_analyzer_eval(globalStruct.value == 43); // expected-warning{{TRUE}}
[all …]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.split/
H A Dgeneral.pass.cpp32 constexpr bool is_equal(View& view, const Expected& expected) { in is_equal() argument
33 return std::ranges::equal(view, expected, std::ranges::equal); in is_equal()
37 constexpr bool test_function_call(T&& input, Separator&& separator, std::array<U, M> expected) { in test_function_call() argument
39 return is_equal(v, expected); in test_function_call()
43 constexpr bool test_with_piping(T&& input, Separator&& separator, std::array<U, M> expected) { in test_with_piping() argument
44 auto expected_it = expected.begin(); in test_with_piping()
46 if (expected_it == expected.end()) in test_with_piping()
54 return expected_it == expected.end(); in test_with_piping()
128 constexpr void test_one(T&& input, Separator&& separator, std::array<U, M> expected) { in test_one() argument
129 assert(test_function_call(input, separator, expected)); in test_one()
[all …]
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dgeneral.pass.cpp64 constexpr bool is_equal(View& view, const Expected& expected) { in is_equal() argument
69 auto expected_it = expected.begin(); in is_equal()
70 for (; actual_it != view.end() && expected_it != expected.end(); ++actual_it, ++expected_it) { in is_equal()
75 return actual_it == view.end() && expected_it == expected.end(); in is_equal()
79 constexpr bool test_function_call(T&& input, Separator&& separator, std::array<U, M> expected) { in test_function_call() argument
81 return is_equal(v, expected); in test_function_call()
85 constexpr bool test_with_piping(T&& input, Separator&& separator, std::array<U, M> expected) { in test_with_piping() argument
86 auto expected_it = expected.begin(); in test_with_piping()
88 if (expected_it == expected.end()) in test_with_piping()
96 return expected_it == expected.end(); in test_with_piping()
[all …]
/llvm-project/libc/test/src/stdio/printf_core/
H A Dparser_test.cpp55 LIBC_NAMESPACE::printf_core::FormatSection expected; in TEST() local
56 expected.has_conv = false; in TEST()
58 expected.raw_string = {str, 4}; in TEST()
60 ASSERT_PFORMAT_EQ(expected, format_arr[0]); in TEST()
96 LIBC_NAMESPACE::printf_core::FormatSection expected; in TEST() local
97 expected.has_conv = true; in TEST()
99 expected.raw_string = {str, 2}; in TEST()
100 expected.conv_val_raw = arg1; in TEST()
101 expected.conv_name = 'd'; in TEST()
103 ASSERT_PFORMAT_EQ(expected, format_ar in TEST()
112 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
125 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
147 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
164 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
181 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
198 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
215 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
232 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
250 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
268 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
327 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
413 LIBC_NAMESPACE::printf_core::FormatSection expected; TEST() local
[all...]
/llvm-project/mlir/test/mlir-tblgen/
H A Dattr-or-type-format.mlir4 // expected-error@below {{expected 'begin'}}
11 // expected-error@+1 {{expected valid keyword}}
18 // expected-error@+1 {{expected 'begin'}}
25 // expected-error@+2 {{failed to parse TestAttrUgly parameter 'attr'}}
26 // expected-error@+1 {{expected attribute value}}
33 // expected-error@+1 {{expected 'end'}}
40 // expected-error@+1 {{expected '<'}}
47 // expected-error@+2 {{expected integer value}}
48 // expected-error@+1 {{failed to parse TestAttrWithFormat parameter 'one'}}
56 // expected-error@+2 {{expected integer value}}
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
H A Dreplace_with_range.pass.cpp52 StrBuffer expected;
64 .initial = "", .from = 0, .to = 0, .input = "", .expected = ""};
67 .initial = "", .from = 0, .to = 0, .input = "a", .expected = "a"};
70 .initial = "", .from = 0, .to = 0, .input = "aeiou", .expected = "aeiou"};
77 .expected = "abcdefghijklmnopqrstuvwxyz0123456789"};
82 .initial = "B", .from = 0, .to = 0, .input = "", .expected = "B"};
85 .initial = "B", .from = 0, .to = 0, .input = "a", .expected = "aB"};
88 .initial = "B", .from = 0, .to = 0, .input = "aeiou", .expected = "aeiouB"};
95 .expected = "abcdefghijklmnopqrstuvwxyz0123456789B"};
98 .initial = "B", .from = 0, .to = 1, .input = "", .expected
48 StrBuffer expected; global() member
[all...]
/llvm-project/libcxx/test/std/utilities/expected/expected.void/monadic/
H A Dand_then.pass.cpp41 std::expected<void, int> return_int() { return {}; } in return_int()
42 std::expected<void, NonCopyable> return_noncopyable() { return {}; } in return_noncopyable()
43 std::expected<void, NonMovable> return_nonmovable() { return {}; } in return_nonmovable()
45 static_assert(has_and_then<std::expected<void, int>&, decltype(return_int)>);
46 static_assert(!has_and_then<std::expected<void, NonCopyable>&, decltype(return_noncopyable)>);
47 static_assert(has_and_then<const std::expected<void, int>&, decltype(return_int)>);
48 static_assert(!has_and_then<const std::expected<void, NonCopyable>&, decltype(return_noncopyable)>);
49 static_assert(has_and_then<std::expected<void, int>&&, decltype(return_int)>);
50 static_assert(!has_and_then<std::expected<void, NonMovable>&&, decltype(return_nonmovable)>);
51 static_assert(has_and_then<const std::expected<void, int>&&, decltype(return_int)>);
[all …]
/llvm-project/clang/test/ParserHLSL/
H A Dcb_error.hlsl3 // expected-error@+2 {{expected identifier}}
4 // expected-error@+1 {{expected unqualified-id}}
6 // expected-error@+1 {{expected '{'}}
8 // expected-error@+1 {{expected unqualified-id}}
10 // expected-error@+1 {{expected identifier}}
13 // expected-error@+2 {{expected identifier}}
14 // expected-error@+1 {{expected unqualified-id}}
16 // expected-error@+1 {{expected '{'}}
18 // expected-error@+1 {{expected unqualified-id}}
20 // expected-error@+1 {{expected identifier}}
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/
H A Dfill.pass.cpp27 test(Container in, size_t from, size_t to, typename Container::value_type value, Container expected) { in test()
29 assert(in == expected); in test()
38 std::array<T, 4> expected = {5, 5, 5, 5}; in operator ()()
39 test<Iter>(in, 0, 4, 5, expected); in operator ()()
43 std::array<T, 4> expected = {1, 5, 5, 4}; in operator ()()
44 test<Iter>(in, 1, 3, 5, expected); in operator ()()
55 std::vector<bool> expected(4, true); in test()
57 assert(in == expected); in test()
61 std::vector<bool> expected(8, true); in test()
62 expected[ in test()
26 test(Container in,size_t from,size_t to,typename Container::value_type value,Container expected) test() argument
37 std::array<T, 4> expected = {5, 5, 5, 5}; operator ()() local
42 std::array<T, 4> expected = {1, 5, 5, 4}; operator ()() local
54 std::vector<bool> expected(4, true); test() local
60 std::vector<bool> expected(8, true); test() local
68 std::vector<bool> expected(8, true); test() local
76 std::vector<bool> expected(16, true); test() local
86 std::vector<bool> expected(8, true); test() local
[all...]
/llvm-project/libcxx/test/std/utilities/expected/expected.expected/ctor/
H A Dctor.convert.copy.pass.cpp12 // constexpr explicit(see below) expected(const expected<U, G>&);
21 // - is_constructible_v<T, expected<U, G>&> is false; and
22 // - is_constructible_v<T, expected<U, G>> is false; and
23 // - is_constructible_v<T, const expected<U, G>&> is false; and
24 // - is_constructible_v<T, const expected<U, G>> is false; and
25 // - is_convertible_v<expected<U, G>&, T> is false; and
26 // - is_convertible_v<expected<U, G>&&, T> is false; and
27 // - is_convertible_v<const expected<U, G>&, T> is false; and
28 // - is_convertible_v<const expected<
[all...]

12345678910>>...122