Allow any size enum in gdb.cp/var-tag.exp.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 24 Sep 2015 00:12:07 +0000 (17:12 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 24 Sep 2015 00:12:07 +0000 (17:12 -0700)
2015-09-23 Sandra Loosemore <sandra@codesourcery.com>

gdb/testsuite/
* gdb.cp/var-tag.exp (do_global_tests): Generalize opt_underlying
to allow any size enum.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/var-tag.exp

index efabcdf..2c75cea 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-23 Sandra Loosemore <sandra@codesourcery.com>
+
+       * gdb.cp/var-tag.exp (do_global_tests): Generalize opt_underlying
+       to allow any size enum.
+
 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
 
        * gdb.ada/array_ptr_renaming.exp: New testcase.
index 71d9237..6dc198c 100644 (file)
@@ -30,7 +30,7 @@ proc do_global_tests {lang} {
     set invalid_print "Attempt to use a type name as an expression"
 
     if {$lang == "c++"} {
-       set opt_underlying "(: unsigned int )?"
+       set opt_underlying "(: unsigned (int|short|char) )?"
     } else {
        set opt_underlying ""
     }