Home
last modified time | relevance | path

Searched refs:test0 (Results 1 – 25 of 506) sorted by relevance

12345678910>>...21

/llvm-project/clang/test/Sema/
H A Dconditional-expr.c43 unsigned long test0 = 5; in foo() local
44test0 = test0 ? (long) test0 : test0; // expected-warning {{operand of ? changes signedness: 'long… in foo()
45test0 = test0 ? (int) test0 : test0; // expected-warning {{operand of ? changes signedness: 'int' … in foo()
46test0 = test0 ? (short) test0 : test0; // expected-warning {{operand of ? changes signedness: 'sho… in foo()
47test0 = test0 ? test0 : (long) test0; // expected-warning {{operand of ? changes signedness: 'long… in foo()
48test0 = test0 ? test0 : (int) test0; // expected-warning {{operand of ? changes signedness: 'int' … in foo()
49test0 = test0 ? test0 : (short) test0; // expected-warning {{operand of ? changes signedness: 'sho… in foo()
50 test0 = test0 ? test0 : (long) 10; in foo()
51 test0 = test0 ? test0 : (int) 10; in foo()
52 test0 = test0 ? test0 : (short) 10; in foo()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/forwardlist/forwardlist.erasure/
H A Derase.pass.cpp24 void test0(S s, U val, S expected, std::size_t expected_erased_count) { in test0() function
33 test0(S(), 1, S(), 0); in test()
35 test0(S({1}), 1, S(), 1); in test()
36 test0(S({1}), 2, S({1}), 0); in test()
38 test0(S({1, 2}), 1, S({2}), 1); in test()
39 test0(S({1, 2}), 2, S({1}), 1); in test()
40 test0(S({1, 2}), 3, S({1, 2}), 0); in test()
41 test0(S({1, 1}), 1, S(), 2); in test()
42 test0(S({1, 1}), 3, S({1, 1}), 0); in test()
44 test0(S({1, 2, 3}), 1, S({2, 3}), 1); in test()
[all …]
H A Derase_if.pass.cpp23 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
39 test0(S(), is1, S(), 0); in test()
41 test0(S({1}), is1, S(), 1); in test()
42 test0(S({1}), is2, S({1}), 0); in test()
44 test0(S({1, 2}), is1, S({2}), 1); in test()
45 test0(S({1, 2}), is2, S({1}), 1); in test()
46 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
47 test0(S({1, 1}), is1, S(), 2); in test()
48 test0(S({1, 1}), is3, S({1, 1}), 0); in test()
50 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
[all …]
/llvm-project/libcxx/test/std/strings/strings.erasure/
H A Derase.pass.cpp25 void test0(S s, U val, S expected, std::size_t expected_erased_count) { in test0() function
34 test0(S(""), 'a', S(""), 0); in test()
36 test0(S("a"), 'a', S(""), 1); in test()
37 test0(S("a"), 'b', S("a"), 0); in test()
39 test0(S("ab"), 'a', S("b"), 1); in test()
40 test0(S("ab"), 'b', S("a"), 1); in test()
41 test0(S("ab"), 'c', S("ab"), 0); in test()
42 test0(S("aa"), 'a', S(""), 2); in test()
43 test0(S("aa"), 'c', S("aa"), 0); in test()
45 test0(S("abc"), 'a', S("bc"), 1); in test()
[all …]
H A Derase_if.pass.cpp24 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
40 test0(S(""), isA, S(""), 0); in test()
42 test0(S("a"), isA, S(""), 1); in test()
43 test0(S("a"), isB, S("a"), 0); in test()
45 test0(S("ab"), isA, S("b"), 1); in test()
46 test0(S("ab"), isB, S("a"), 1); in test()
47 test0(S("ab"), isC, S("ab"), 0); in test()
48 test0(S("aa"), isA, S(""), 2); in test()
49 test0(S("aa"), isC, S("aa"), 0); in test()
51 test0(S("abc"), isA, S("bc"), 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/list/list.erasure/
H A Derase.pass.cpp24 void test0(S s, U val, S expected, std::size_t expected_erased_count) { in test0() function
33 test0(S(), 1, S(), 0); in test()
35 test0(S({1}), 1, S(), 1); in test()
36 test0(S({1}), 2, S({1}), 0); in test()
38 test0(S({1, 2}), 1, S({2}), 1); in test()
39 test0(S({1, 2}), 2, S({1}), 1); in test()
40 test0(S({1, 2}), 3, S({1, 2}), 0); in test()
41 test0(S({1, 1}), 1, S(), 2); in test()
42 test0(S({1, 1}), 3, S({1, 1}), 0); in test()
44 test0(S({1, 2, 3}), 1, S({2, 3}), 1); in test()
[all …]
H A Derase_if.pass.cpp23 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
39 test0(S(), is1, S(), 0); in test()
41 test0(S({1}), is1, S(), 1); in test()
42 test0(S({1}), is2, S({1}), 0); in test()
44 test0(S({1, 2}), is1, S({2}), 1); in test()
45 test0(S({1, 2}), is2, S({1}), 1); in test()
46 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
47 test0(S({1, 1}), is1, S(), 2); in test()
48 test0(S({1, 1}), is3, S({1, 1}), 0); in test()
50 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/deque/deque.erasure/
H A Derase.pass.cpp27 void test0(S s, U val, S expected, std::size_t expected_erased_count) { in test0() function
37 test0(S(), 1, S(), 0); in test()
39 test0(S({1}), 1, S(), 1); in test()
40 test0(S({1}), 2, S({1}), 0); in test()
42 test0(S({1, 2}), 1, S({2}), 1); in test()
43 test0(S({1, 2}), 2, S({1}), 1); in test()
44 test0(S({1, 2}), 3, S({1, 2}), 0); in test()
45 test0(S({1, 1}), 1, S(), 2); in test()
46 test0(S({1, 1}), 3, S({1, 1}), 0); in test()
48 test0(S({1, 2, 3}), 1, S({2, 3}), 1); in test()
[all …]
H A Derase_if.pass.cpp26 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
43 test0(S(), is1, S(), 0); in test()
45 test0(S({1}), is1, S(), 1); in test()
46 test0(S({1}), is2, S({1}), 0); in test()
48 test0(S({1, 2}), is1, S({2}), 1); in test()
49 test0(S({1, 2}), is2, S({1}), 1); in test()
50 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
51 test0(S({1, 1}), is1, S(), 2); in test()
52 test0(S({1, 1}), is3, S({1, 1}), 0); in test()
54 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.erasure/
H A Derase.pass.cpp24 TEST_CONSTEXPR_CXX20 void test0(S s, U val, S expected, std::size_t expected_erased_count) { in test0() function
33 test0(S(), 1, S(), 0); in test()
35 test0(S({1}), 1, S(), 1); in test()
36 test0(S({1}), 2, S({1}), 0); in test()
38 test0(S({1, 2}), 1, S({2}), 1); in test()
39 test0(S({1, 2}), 2, S({1}), 1); in test()
40 test0(S({1, 2}), 3, S({1, 2}), 0); in test()
41 test0(S({1, 1}), 1, S(), 2); in test()
42 test0(S({1, 1}), 3, S({1, 1}), 0); in test()
44 test0(S({1, 2, 3}), 1, S({2, 3}), 1); in test()
[all …]
H A Derase_if.pass.cpp23 TEST_CONSTEXPR_CXX20 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
39 test0(S(), is1, S(), 0); in test()
41 test0(S({1}), is1, S(), 1); in test()
42 test0(S({1}), is2, S({1}), 0); in test()
44 test0(S({1, 2}), is1, S({2}), 1); in test()
45 test0(S({1, 2}), is2, S({1}), 1); in test()
46 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
47 test0(S({1, 1}), is1, S(), 2); in test()
48 test0(S({1, 1}), is3, S({1, 1}), 0); in test()
50 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
[all …]
/llvm-project/clang/test/SemaCXX/
H A Dconditional-expr.cpp205 unsigned long test0 = 5; in test() local
206 test0 = test0 ? (long) test0 : test0; // expected-warning {{operand of ? changes signedness: 'long' to 'unsigned long'}} in test()
207 test0 = test0 ? (int) test0 : test0; // expected-warning {{operand of ? changes signedness: 'int' to 'unsigned long'}} in test()
208 test0 in test()
[all...]
/llvm-project/libcxx/test/std/containers/associative/multiset/multiset.erasure/
H A Derase_if.pass.cpp23 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
39 test0(S(), is1, S(), 0); in test()
41 test0(S({1}), is1, S(), 1); in test()
42 test0(S({1}), is2, S({1}), 0); in test()
44 test0(S({1, 2}), is1, S({2}), 1); in test()
45 test0(S({1, 2}), is2, S({1}), 1); in test()
46 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
47 test0(S({1, 1}), is1, S(), 2); in test()
48 test0(S({1, 1}), is3, S({1, 1}), 0); in test()
50 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/unord/unord.multiset/
H A Derase_if.pass.cpp35 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
53 test0<S>({}, is1, {}, 0); in test()
55 test0<S>({1}, is1, {}, 1); in test()
56 test0<S>({1}, is2, {1}, 0); in test()
58 test0<S>({1, 2}, is1, {2}, 1); in test()
59 test0<S>({1, 2}, is2, {1}, 1); in test()
60 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
61 test0<S>({1, 1}, is1, {}, 2); in test()
62 test0<S>({1, 1}, is3, {1, 1}, 0); in test()
64 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/associative/multimap/multimap.erasure/
H A Derase_if.pass.cpp33 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
50 test0<S>({}, is1, {}, 0); in test()
52 test0<S>({1}, is1, {}, 1); in test()
53 test0<S>({1}, is2, {1}, 0); in test()
55 test0<S>({1, 2}, is1, {2}, 1); in test()
56 test0<S>({1, 2}, is2, {1}, 1); in test()
57 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
58 test0<S>({1, 1}, is1, {}, 2); in test()
59 test0<S>({1, 1}, is3, {1, 1}, 0); in test()
61 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/unord/unord.multimap/
H A Derase_if.pass.cpp34 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
52 test0<S>({}, is1, {}, 0); in test()
54 test0<S>({1}, is1, {}, 1); in test()
55 test0<S>({1}, is2, {1}, 0); in test()
57 test0<S>({1, 2}, is1, {2}, 1); in test()
58 test0<S>({1, 2}, is2, {1}, 1); in test()
59 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
60 test0<S>({1, 1}, is1, {}, 2); in test()
61 test0<S>({1, 1}, is3, {1, 1}, 0); in test()
63 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/
H A Dpointer_string.pass.cpp27 TEST_CONSTEXPR_CXX20 void test0(const typename S::value_type* lhs, const S& rhs, const S& x) { in test0() function
40 test0("", S(""), S("")); in test_string()
41 test0("", S("12345"), S("12345")); in test_string()
42 test0("", S("1234567890"), S("1234567890")); in test_string()
43 test0("", S("12345678901234567890"), S("12345678901234567890")); in test_string()
44 test0("abcde", S(""), S("abcde")); in test_string()
45 test0("abcde", S("12345"), S("abcde12345")); in test_string()
46 test0("abcde", S("1234567890"), S("abcde1234567890")); in test_string()
47 test0("abcde", S("12345678901234567890"), S("abcde12345678901234567890")); in test_string()
48 test0("abcdefghij", S(""), S("abcdefghij")); in test_string()
[all …]
H A Dstring_pointer.pass.cpp28 TEST_CONSTEXPR_CXX20 void test0(const S& lhs, const typename S::value_type* rhs, const S& x) { in test0() function
42 test0(S(""), "", S("")); in test_string()
43 test0(S(""), "12345", S("12345")); in test_string()
44 test0(S(""), "1234567890", S("1234567890")); in test_string()
45 test0(S(""), "12345678901234567890", S("12345678901234567890")); in test_string()
46 test0(S("abcde"), "", S("abcde")); in test_string()
47 test0(S("abcde"), "12345", S("abcde12345")); in test_string()
48 test0(S("abcde"), "1234567890", S("abcde1234567890")); in test_string()
49 test0(S("abcde"), "12345678901234567890", S("abcde12345678901234567890")); in test_string()
50 test0(S("abcdefghij"), "", S("abcdefghij")); in test_string()
[all …]
H A Dstring_string.pass.cpp40 TEST_CONSTEXPR_CXX20 void test0(const S& lhs, const S& rhs, const S& x) { in test0() function
64 test0(S(""), S(""), S("")); in test_string()
65 test0(S(""), S("12345"), S("12345")); in test_string()
66 test0(S(""), S("1234567890"), S("1234567890")); in test_string()
67 test0(S(""), S("12345678901234567890"), S("12345678901234567890")); in test_string()
68 test0(S("abcde"), S(""), S("abcde")); in test_string()
69 test0(S("abcde"), S("12345"), S("abcde12345")); in test_string()
70 test0(S("abcde"), S("1234567890"), S("abcde1234567890")); in test_string()
71 test0(S("abcde"), S("12345678901234567890"), S("abcde12345678901234567890")); in test_string()
72 test0(S("abcdefghij"), S(""), S("abcdefghij")); in test_string()
[all …]
/llvm-project/libcxx/test/std/containers/associative/set/set.erasure/
H A Derase_if.pass.cpp23 void test0(S s, Pred p, S expected, std::size_t expected_erased_count) { in test0() function
39 test0(S(), is1, S(), 0); in test()
41 test0(S({1}), is1, S(), 1); in test()
42 test0(S({1}), is2, S({1}), 0); in test()
44 test0(S({1, 2}), is1, S({2}), 1); in test()
45 test0(S({1, 2}), is2, S({1}), 1); in test()
46 test0(S({1, 2}), is3, S({1, 2}), 0); in test()
48 test0(S({1, 2, 3}), is1, S({2, 3}), 1); in test()
49 test0(S({1, 2, 3}), is2, S({1, 3}), 1); in test()
50 test0(S({1, 2, 3}), is3, S({1, 2}), 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/associative/map/map.erasure/
H A Derase_if.pass.cpp33 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
50 test0<S>({}, is1, {}, 0); in test()
52 test0<S>({1}, is1, {}, 1); in test()
53 test0<S>({1}, is2, {1}, 0); in test()
55 test0<S>({1, 2}, is1, {2}, 1); in test()
56 test0<S>({1, 2}, is2, {1}, 1); in test()
57 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
59 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
60 test0<S>({1, 2, 3}, is2, {1, 3}, 1); in test()
61 test0<S>({1, 2, 3}, is3, {1, 2}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/unord/unord.set/
H A Derase_if.pass.cpp35 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
53 test0<S>({}, is1, {}, 0); in test()
55 test0<S>({1}, is1, {}, 1); in test()
56 test0<S>({1}, is2, {1}, 0); in test()
58 test0<S>({1, 2}, is1, {2}, 1); in test()
59 test0<S>({1, 2}, is2, {1}, 1); in test()
60 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
62 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
63 test0<S>({1, 2, 3}, is2, {1, 3}, 1); in test()
64 test0<S>({1, 2, 3}, is3, {1, 2}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/containers/unord/unord.map/
H A Derase_if.pass.cpp34 void test0(Init vals, Pred p, Init expected, std::size_t expected_erased_count) { in test0() function
52 test0<S>({}, is1, {}, 0); in test()
54 test0<S>({1}, is1, {}, 1); in test()
55 test0<S>({1}, is2, {1}, 0); in test()
57 test0<S>({1, 2}, is1, {2}, 1); in test()
58 test0<S>({1, 2}, is2, {1}, 1); in test()
59 test0<S>({1, 2}, is3, {1, 2}, 0); in test()
61 test0<S>({1, 2, 3}, is1, {2, 3}, 1); in test()
62 test0<S>({1, 2, 3}, is2, {1, 3}, 1); in test()
63 test0<S>({1, 2, 3}, is3, {1, 2}, 1); in test()
[all …]
/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/
H A Dlcm.pass.cpp39 constexpr bool test0(int in1, int in2, int out) in test0() function
61 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
62 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test()
63 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
64 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test()
65 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
66 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test()
67 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
68 accumulate &= test0<S2, S1, Output>(-TC.x, -TC.y, TC.expect); in do_test()
72 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
[all …]
/llvm-project/libcxx/test/libcxx/gdb/
H A Dgdb_pretty_printer_test.sh.cpp214 std::u16string test0 = u"Hello World"; in u16string_test()
215 ComparePrettyPrintToChars(test0, "u\"Hello World\"");
226 std::u32string test0 = U"Hello World"; in u32string_test()
227 ComparePrettyPrintToChars(test0, "U\"Hello World\""); in u32string_test()
240 std::tuple<int, int, int> test0(2, 3, 4); in tuple_test()
241 ComparePrettyPrintToChars(test0, "std::tuple containing = {[0] = 2, [1] = 3, [2] = 4}");
418 std::stack<int> test0; in stack_test()
419 ComparePrettyPrintToChars(test0, "std::stack wrapping: std::deque is empty"); in stack_test()
420 test0.push(5); in stack_test()
421 test0 in stack_test()
205 std::u16string test0 = u"Hello World"; u16string_test() local
217 std::u32string test0 = U"Hello World"; u32string_test() local
231 std::tuple<int, int, int> test0(2, 3, 4); tuple_test() local
411 std::stack<int> test0; stack_test() local
444 std::vector<bool> test0 = {true, false}; vector_test() local
625 std::shared_ptr<const int> test0 = std::make_shared<const int>(5); shared_ptr_test() local
653 std::streampos test0 = 67; streampos_test() local
[all...]

12345678910>>...21