Allow any size enum in gdb.cp/var-tag.exp.

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.
This commit is contained in:
Sandra Loosemore 2015-09-23 17:12:07 -07:00
parent 86e13c95cf
commit 938d3bf25b
2 changed files with 6 additions and 1 deletions

View 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.

View 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 ""
}