Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
llvm-doe
llvm-project
Commits
cad79f73
Commit
cad79f73
authored
Jun 24, 2020
by
Raphael Isemann
Browse files
[lldb][NFC] Use expect_expr in TestStructTypes.py
parent
ca899bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lldb/test/API/lang/c/struct_types/main.c
View file @
cad79f73
...
...
@@ -17,7 +17,7 @@ int main (int argc, char const *argv[])
char
padding
[
0
];
};
//% self.expect("frame variable pt.padding[0]", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["pt.padding[0] = "])
//% self.expect("frame variable pt.padding[1]", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["pt.padding[1] = "])
//% self.expect
("
expr
ession --
(pt.padding[0]
)
",
DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["(char)", " = "]
)
//% self.expect
_
expr(
"
pt.padding[0]",
result_type="char"
)
//% self.expect("image lookup -t point_tag", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ['padding[]'])
struct
{}
empty
;
...
...
@@ -32,7 +32,7 @@ int main (int argc, char const *argv[])
struct
rect_tag
rect
=
{{
1
,
2
,
{}},
{
3
,
4
,
{}}};
struct
things_to_sum
tts
=
{
2
,
3
,
4
};
int
sum
=
sum_things
(
tts
);
//% self.expect
("
expr
ession --
&pt == (struct point_tag*)0",
substrs = ['
false
']
)
//% self.expect
("
expr
ession --
sum_things(tts)",
substrs = ['9']
)
int
sum
=
sum_things
(
tts
);
//% self.expect
_
expr
("
&pt == (struct point_tag*)0",
result_value="
false
"
)
//% self.expect
_
expr
("
sum_things(tts)",
result_value="9"
)
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment