Home
last modified time | relevance | path

Searched refs:expect_expr (Results 1 – 25 of 130) sorted by relevance

123456

/llvm-project-15.0.7/lldb/test/API/lang/c/cpp_keyword_identifiers/
H A DTestCppKeywordsAsCIdentifiers.py17 self.expect_expr("alignas", result_type="int", result_value="1")
18 self.expect_expr("alignof", result_type="int", result_value="1")
19 self.expect_expr("and", result_type="int", result_value="1")
20 self.expect_expr("and_eq", result_type="int", result_value="1")
24 self.expect_expr("bitand", result_type="int", result_value="1")
25 self.expect_expr("bitor", result_type="int", result_value="1")
26 self.expect_expr("catch", result_type="int", result_value="1")
30 self.expect_expr("class", result_type="int", result_value="1")
48 self.expect_expr("new", result_type="int", result_value="1")
50 self.expect_expr("not", result_type="int", result_value="1")
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/objc/cpp_keyword_identifiers/
H A DTestCppKeywordsAsObjCIdentifiers.py16 self.expect_expr("alignas", result_type="int", result_value="1")
17 self.expect_expr("alignof", result_type="int", result_value="1")
18 self.expect_expr("and", result_type="int", result_value="1")
19 self.expect_expr("and_eq", result_type="int", result_value="1")
23 self.expect_expr("bitand", result_type="int", result_value="1")
24 self.expect_expr("bitor", result_type="int", result_value="1")
25 self.expect_expr("catch", result_type="int", result_value="1")
29 self.expect_expr("class", result_type="int", result_value="1")
47 self.expect_expr("new", result_type="int", result_value="1")
49 self.expect_expr("not", result_type="int", result_value="1")
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/structured-binding/
H A DTestStructuredBinding.py14 self.expect_expr("a1", result_type="A",
17 self.expect_expr("b1", result_type="char", result_value="'a'")
20 self.expect_expr("e1", result_type="int", result_value="60")
23 self.expect_expr("a2", result_type="A",
32 self.expect_expr("a3", result_type="A",
77 self.expect_expr("tx1", result_value="4")
78 self.expect_expr("ty1", result_value="'z'")
79 self.expect_expr("tz1", result_value="10")
81 self.expect_expr("tx2", result_value="4")
82 self.expect_expr("ty2", result_value="'z'")
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/const_static_integral_member/
H A DTestConstStaticIntegralMember.py18 self.expect_expr("A::int_val", result_value="1")
22 self.expect_expr("a.int_val", result_value="1")
23 self.expect_expr("(A::int_val)", result_value="1")
24 self.expect_expr("+A::int_val", result_value="1")
25 self.expect_expr("1,A::int_val", result_value="1")
30 self.expect_expr("A::int_val_with_address", result_value="2")
33 self.expect_expr("A::bool_val", result_value="true")
38 self.expect_expr("A::int_max == int_max", result_value="true")
55 self.expect_expr("A::enum_val", result_value="enum_case2")
70 self.expect_expr("ClassWithEnumAlias::enum_alias",
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/expr_inside_lambda/
H A DTestExprInsideLambdas.py31 self.expect_expr("class_var", result_type="int", result_value="109")
36 self.expect_expr("shadowed", result_type="int", result_value="5")
40 self.expect_expr("local_var", result_type="int", result_value="137")
44 self.expect_expr("base_var", result_type="int", result_value="14")
48 self.expect_expr("global_var", result_type="int", result_value="-5")
55 self.expect_expr("baz_virt()", result_type="int", result_value="2")
56 self.expect_expr("base_var", result_type="int", result_value="14")
62 self.expect_expr("this", result_value=outer_class_addr.GetValue())
71 self.expect_expr("this", result_value=outer_class_addr.GetValue())
119 self.expect_expr("local", result_type="int", result_value="5")
[all …]
/llvm-project-15.0.7/lldb/test/API/functionalities/limit-debug-info/
H A DTestLimitDebugInfo.py48 self.expect_expr("inherits_from_one.one", result_value="142")
50 self.expect_expr("inherits_from_two.one", result_value="142")
53 self.expect_expr("one_as_member.member", result_value="47")
55 self.expect_expr("two_as_member.member", result_value="47")
63 self.expect_expr("get_one().member", result_value="124")
65 self.expect_expr("get_two().member", result_value="224")
67 self.expect_expr("shadowed_one.member", result_value="47")
68 self.expect_expr("shadowed_one.one", result_value="142")
93 self.expect_expr("one_as_member.member", result_value="47")
111 self.expect_expr("get_two().member", result_value="224")
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/covariant-return-types/
H A DTestCovariantReturnTypes.py13 self.expect_expr("derived.getPtr()", result_type="Derived *")
14 self.expect_expr("base_ptr_to_derived->getPtr()", result_type="Base *")
15 self.expect_expr("base.getPtr()", result_type="Base *")
18 self.expect_expr("derived.getRef()", result_type="Derived")
19 self.expect_expr("base_ptr_to_derived->getRef()", result_type="Base")
20 self.expect_expr("base.getRef()", result_type="Base")
23 self.expect_expr("derived.getOtherPtr()", result_type="OtherDerived *")
25 self.expect_expr("base.getOtherPtr()", result_type="OtherBase *")
28 self.expect_expr("derived.getOtherRef()", result_type="OtherDerived")
30 self.expect_expr("base.getOtherRef()", result_type="OtherBase")
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/vector/
H A DTestVectorFromStdModule.py34 self.expect_expr("a",
41 self.expect_expr("a.size()", result_type=size_type, result_value="3")
42 front = self.expect_expr("a.front()", result_value="3")
48 self.expect_expr("a[1]", result_type=value_type, result_value="1")
53 self.expect_expr("a[1]", result_type=value_type, result_value="2")
58 self.expect_expr("a[1]", result_type=value_type, result_value="2")
61 self.expect_expr("a.begin()",
64 self.expect_expr("a.rbegin()",
68 self.expect_expr("*a.begin()", result_type="int", result_value="3")
85 self.expect_expr("a",
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/class-template-type-parameter-pack/
H A DTestClassTemplateTypeParameterPack.py14 self.expect_expr("emptyTypePack", result_type="TypePack<>",
16 self.expect_expr("oneElemTypePack", result_type="TypePack<int>",
18 self.expect_expr("twoElemTypePack", result_type="TypePack<int, float>",
22 self.expect_expr("emptyAnonTypePack", result_type="AnonTypePack<>",
24 self.expect_expr("oneElemAnonTypePack", result_type="AnonTypePack<int>",
26 self.expect_expr("twoElemAnonTypePack", result_type="AnonTypePack<int, float>",
30 … self.expect_expr("emptyAnonTypePackAfterTypeParam", result_type="AnonTypePackAfterTypeParam<int>",
43 … self.expect_expr("emptyTypePackAfterAnonTypeParam", result_type="TypePackAfterAnonTypeParam<int>",
49 self.expect_expr("emptyTypePackAfterTypeParam", result_type="TypePackAfterTypeParam<int>",
51 …self.expect_expr("oneElemTypePackAfterTypeParam", result_type="TypePackAfterTypeParam<int, float>",
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/class-template-non-type-parameter-pack/
H A DTestClassTemplateNonTypeParameterPack.py14 self.expect_expr("emptyNonTypePack", result_type="NonTypePack<>",
16 self.expect_expr("oneElemNonTypePack", result_type="NonTypePack<1>",
18 self.expect_expr("twoElemNonTypePack", result_type="NonTypePack<1, 2>",
22 self.expect_expr("emptyAnonNonTypePack", result_type="AnonNonTypePack<>",
24 self.expect_expr("oneElemAnonNonTypePack", result_type="AnonNonTypePack<1>",
26 self.expect_expr("twoElemAnonNonTypePack", result_type="AnonNonTypePack<1, 2>",
30 …self.expect_expr("emptyAnonNonTypePackAfterTypeParam", result_type="AnonNonTypePackAfterTypeParam<…
43 …self.expect_expr("emptyNonTypePackAfterAnonTypeParam", result_type="NonTypePackAfterAnonTypeParam<…
49 … self.expect_expr("emptyNonTypePackAfterTypeParam", result_type="NonTypePackAfterTypeParam<int>",
51 …self.expect_expr("oneElemNonTypePackAfterTypeParam", result_type="NonTypePackAfterTypeParam<int, 1…
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/multiple-inheritance/
H A DTestCppMultipleInheritance.py13 self.expect_expr("C.Base1::m_base", result_type="int", result_value="11")
14 self.expect_expr("C.Base2::m_base", result_type="int", result_value="12")
15 self.expect_expr("C.m1", result_type="int", result_value="22")
16 self.expect_expr("C.m2", result_type="int", result_value="33")
17 self.expect_expr("C.m_final", result_type="int", result_value="44")
22 self.expect_expr("C.virt1()", result_type="int", result_value="3")
23 self.expect_expr("C.virt2()", result_type="int", result_value="5")
24 self.expect_expr("C.final_virt()", result_type="int", result_value="7")
30 self.expect_expr("C.func1()", result_type="int", result_value="4")
31 self.expect_expr("C.func2()", result_type="int", result_value="6")
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/array/
H A DTestArrayFromStdModule.py32 self.expect_expr("a",
41 self.expect_expr("a.size()", result_type=size_type, result_value="3")
43 self.expect_expr("a[1]", result_type=value_type, result_value="1")
44 self.expect_expr("a.back()", result_type=value_type, result_value="2")
47 self.expect_expr("a.begin()", result_type=iterator)
48 self.expect_expr("a.rbegin()", result_type=riterator)
51 self.expect_expr("*a.rbegin()", result_type="int", result_value="2")
53 self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
66 self.expect_expr("b",
77 self.expect_expr("b.begin()", result_type=iterator)
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/template-function/
H A DTestTemplateFunctions.py18 self.expect_expr("(int) foo(42)", result_type="int", result_value="42")
22 self.expect_expr("foo(42)", result_type="int", result_value="42")
25 self.expect_expr("h(10)", result_type="int", result_value="10")
28 self.expect_expr("f(A::C{})", result_type="int", result_value="4")
31 self.expect_expr("g(A::C{})", result_type="int", result_value="4")
34 self.expect_expr("var(1)", result_type="int", result_value="10")
35 self.expect_expr("var(1, 2)", result_type="int", result_value="10")
38 self.expect_expr("b1 > b2", result_type="bool", result_value="true")
39 self.expect_expr("b1 >> b2", result_type="bool", result_value="true")
40 self.expect_expr("b1 << b2", result_type="bool", result_value="true")
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/queue/
H A DTestQueueFromStdModule.py28 self.expect_expr(
34 self.expect_expr("q_deque.size()",
39 self.expect_expr("q_deque.front().i",
42 self.expect_expr("q_deque.back().i",
45 self.expect_expr("q_deque.empty()",
50 self.expect_expr("q_deque.front().i",
58 self.expect_expr(
65 self.expect_expr("q_list.size()",
70 self.expect_expr("q_list.front().i",
73 self.expect_expr("q_list.back().i",
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/persistent_variables/
H A DTestPersistentVariables.py20 self.expect_expr("$i + 1", result_type="int", result_value="6")
21 self.expect_expr("$i + 3", result_type="int", result_value="8")
22 self.expect_expr("$1 + $2", result_type="int", result_value="14")
23 self.expect_expr("$3", result_type="int", result_value="14")
24 self.expect_expr("$2", result_type="int", result_value="8")
25 self.expect_expr("(int)-2", result_type="int", result_value="-2")
26 self.expect_expr("$4", result_type="int", result_value="-2")
34 self.expect_expr("$2", result_type="int", result_value="8")
47 self.expect_expr("$i", result_type="int", result_value="5")
53 self.expect_expr("$i", result_type="int", result_value="5")
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/
H A DTestDbgInfoContentVectorFromStdModule.py36 self.expect_expr("a",
44 self.expect_expr("a.size()", result_type=size_type, result_value="3")
45 self.expect_expr("a.front().a", result_type="int", result_value="3")
46 self.expect_expr("a[1].a", result_type="int", result_value="1")
47 self.expect_expr("a.back().a", result_type="int", result_value="2")
50 self.expect_expr("a.front().a", result_type="int", result_value="2")
56 self.expect_expr("a.back().a", result_type="int", result_value="1")
59 self.expect_expr("a.at(0).a", result_type="int", result_value="2")
62 self.expect_expr("a.back().a", result_type="int", result_value="4")
65 self.expect_expr("a.begin()",
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/virtual-functions/
H A DTestCppVirtualFunctions.py14 self.expect_expr("base_with_dtor.foo()", result_type="int", result_value="1")
15 self.expect_expr("base_without_dtor.foo()", result_type="int", result_value="2")
19 self.expect_expr("derived_with_dtor.foo()", result_type="int", result_value="3")
20 self.expect_expr("derived_without_dtor.foo()", result_type="int", result_value="4")
21 self.expect_expr("derived_with_base_dtor.foo()", result_type="int", result_value="5")
22 … self.expect_expr("derived_with_dtor_but_no_base_dtor.foo()", result_type="int", result_value="6")
26 self.expect_expr("derived_with_dtor_as_base.foo()", result_type="int", result_value="3")
27 self.expect_expr("derived_without_as_base.foo()", result_type="int", result_value="4")
28 … self.expect_expr("derived_with_base_dtor_as_base.foo()", result_type="int", result_value="5")
34 self.expect_expr("derived_with_overload.foo(1)", result_type="int", result_value="7")
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/stack/
H A DTestStackFromStdModule.py27 self.expect_expr("s_deque", result_type=stack_type)
30 self.expect_expr("s_deque.size()",
33 self.expect_expr("s_deque.top().i",
37 self.expect_expr("s_deque.top().i",
45 self.expect_expr("s_vector", result_type=stack_type)
48 self.expect_expr("s_vector.size()",
51 self.expect_expr("s_vector.top().i",
55 self.expect_expr("s_vector.top().i",
62 self.expect_expr("s_list", result_type=stack_type)
65 self.expect_expr("s_list.size()",
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/
H A DTestDbgInfoContentDequeFromStdModule.py39 self.expect_expr("a",
47 self.expect_expr("a.size()", result_type=size_type, result_value="3")
48 self.expect_expr("a.front()",
51 self.expect_expr("a.back()",
54 self.expect_expr("a.front().a", result_type="int", result_value="3")
55 self.expect_expr("a.back().a", result_type="int", result_value="2")
58 self.expect_expr("a.front().a", result_type="int", result_value="2")
59 self.expect_expr("a.back().a", result_type="int", result_value="3")
61 self.expect_expr("a.begin()",
64 self.expect_expr("a.rbegin()",
[all …]
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/deque-basic/
H A DTestDequeFromStdModule.py37 self.expect_expr("a",
45 self.expect_expr("a.size()", result_type=size_type, result_value="3")
46 self.expect_expr("a.front()", result_type=value_type, result_value="3")
47 self.expect_expr("a.back()", result_type=value_type, result_value="2")
50 self.expect_expr("a.front()", result_type=value_type, result_value="1")
51 self.expect_expr("a.back()", result_type=value_type, result_value="3")
55 self.expect_expr("a.back()", result_type=value_type, result_value="1")
57 self.expect_expr("*a.begin()", result_type="int", result_value="3")
58 self.expect_expr("*a.rbegin()", result_type="int", result_value="1")
59 self.expect_expr("a.begin()",
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/chained-calls/
H A DTestCppChainedCalls.py14 self.expect_expr("get(set(true))", result_type="bool", result_value="true")
15 self.expect_expr("get(set(false))", result_type="bool", result_value="false")
16 self.expect_expr("get(t & f)", result_type="bool", result_value="false")
17 self.expect_expr("get(f & t)", result_type="bool", result_value="false")
18 self.expect_expr("get(t & t)", result_type="bool", result_value="true")
19 self.expect_expr("get(f & f)", result_type="bool", result_value="false")
20 self.expect_expr("get(t & f)", result_type="bool", result_value="false")
21 self.expect_expr("get(f) && get(t)", result_type="bool", result_value="false")
22 self.expect_expr("get(f) && get(f)", result_type="bool", result_value="false")
23 self.expect_expr("get(t) && get(t)", result_type="bool", result_value="true")
/llvm-project-15.0.7/lldb/test/API/lang/c/complex_int/
H A DTestComplexInt.py21 …self.expect_expr("complex_int", result_type="_Complex int", result_value="4294967295 + 4294967294i…
22 self.expect_expr("complex_unsigned", result_type="_Complex int", result_value="1 + 2i")
26 self.expect_expr("complex_long", result_type="_Complex int")
27 … self.expect_expr("complex_unsigned_long", result_type="_Complex int", result_value="1 + 2i")
29 self.expect_expr("complex_long", result_type="_Complex long")
30 … self.expect_expr("complex_unsigned_long", result_type="_Complex long", result_value="1 + 2i")
42 self.expect_expr("complex_long_long", result_type="_Complex long")
43 … self.expect_expr("complex_unsigned_long_long", result_type="_Complex long", result_value="1 + 2i")
45 self.expect_expr("complex_long_long", result_type="_Complex long long")
46 …self.expect_expr("complex_unsigned_long_long", result_type="_Complex long long", result_value="1 +…
/llvm-project-15.0.7/lldb/test/API/commands/expression/import-std-module/list/
H A DTestListFromStdModule.py30 self.expect_expr("a",
38 self.expect_expr("a.size()", result_type=size_type, result_value="3")
39 self.expect_expr("a.front()", result_type=value_type, result_value="3")
40 self.expect_expr("a.back()", result_type=value_type, result_value="2")
43 self.expect_expr("a.front()", result_type=value_type, result_value="1")
44 self.expect_expr("a.back()", result_type=value_type, result_value="3")
47 self.expect_expr("a.front()", result_type=value_type, result_value="3")
48 self.expect_expr("a.back()", result_type=value_type, result_value="1")
50 self.expect_expr("*a.begin()",
53 self.expect_expr("*a.rbegin()",
/llvm-project-15.0.7/lldb/test/API/lang/c/bitfields/
H A DTestBitfields.py37 self.expect_expr("bits", result_children=bits_children)
40 self.expect_expr("bits.b1", result_type="uint32_t", result_value="1")
41 self.expect_expr("bits.b2", result_type="uint32_t", result_value="3")
42 self.expect_expr("bits.b3", result_type="uint32_t", result_value="7")
43 self.expect_expr("bits.b4", result_type="uint32_t", result_value="15")
44 self.expect_expr("bits.b5", result_type="uint32_t", result_value="31")
45 self.expect_expr("bits.b6", result_type="uint32_t", result_value="63")
46 self.expect_expr("bits.b7", result_type="uint32_t", result_value="127")
66 self.expect_expr("more_bits", result_children=more_bits_children)
94 self.expect_expr("many_single_bits", result_type="ManySingleBits",
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/bitfields/
H A DTestCppBitfields.py18 self.expect_expr("lba", result_children=[
22 self.expect_expr("lba.a", result_type="unsigned int", result_value="2")
26 self.expect_expr("lbb", result_children=[
31 self.expect_expr("lbb.b", result_type="unsigned int", result_value="3")
35 self.expect_expr("lbc", result_children=[
48 self.expect_expr("lbd", result_children=[
72 self.expect_expr("bitfields_in_struct_in_union",
78 self.expect_expr("bitfields_in_struct_in_union.f.a",
89 self.expect_expr("uwubf", result_type="UnionWithUnnamedBitfield",
106 self.expect_expr("bb", result_type="", result_children=[
[all …]

123456