summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.rust/simple.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.rust/simple.exp')
-rw-r--r--gdb/testsuite/gdb.rust/simple.exp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.rust/simple.exp b/gdb/testsuite/gdb.rust/simple.exp
index 50ed70b6062..0bcc83e822b 100644
--- a/gdb/testsuite/gdb.rust/simple.exp
+++ b/gdb/testsuite/gdb.rust/simple.exp
@@ -110,6 +110,18 @@ gdb_test "print univariant.a" " = 1"
gdb_test "print univariant_anon" " = simple::UnivariantAnon::Foo\\(1\\)"
gdb_test "print univariant_anon.0" " = 1"
+gdb_test_sequence "ptype simple::Univariant" "" {
+ "type = enum simple::Univariant \\{"
+ " Foo\\{a: u8\\},"
+ "\\}"
+}
+
+gdb_test_sequence "ptype simple::UnivariantAnon" "" {
+ "type = enum simple::UnivariantAnon \\{"
+ " Foo\\(u8\\),"
+ "\\}"
+}
+
gdb_test_sequence "ptype simple::ByeBob" "" {
" = struct simple::ByeBob \\("
" i32,"