diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/var-tag.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp index 60379e9..71d9237 100644 --- a/gdb/testsuite/gdb.cp/var-tag.exp +++ b/gdb/testsuite/gdb.cp/var-tag.exp @@ -33,6 +33,7 @@ proc do_global_tests {lang} { set opt_underlying "(: unsigned int )?" } else { set opt_underlying "" + } set ptypefmt "type = (class|enum|union|struct) %s $opt_underlying{.*}" with_test_prefix $lang { @@ -65,7 +66,7 @@ proc do_global_tests {lang} { # Each of them is in a separate CU as once its CU is expanded, # we're no longer using the quick fns API. gdb_test "print E2" "= a2" - gdb_test "ptype E2" "type = enum E2 {.*}" + gdb_test "ptype E2" "type = enum E2 $opt_underlying{.*}" gdb_test "print S2" "= {<No data fields>}" gdb_test "ptype S2" "type = struct S2 {.*}" gdb_test "print U2" "= {.*}" |