This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=938d3bf25b2f5bc1a9d955d86070e8bbee127f52

commit 938d3bf25b2f5bc1a9d955d86070e8bbee127f52
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Wed Sep 23 17:12:07 2015 -0700

    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.

Diff:
---
 gdb/testsuite/ChangeLog          | 5 +++++
 gdb/testsuite/gdb.cp/var-tag.exp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index efabcdf..2c75cea 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp
index 71d9237..6dc198c 100644
--- a/gdb/testsuite/gdb.cp/var-tag.exp
+++ b/gdb/testsuite/gdb.cp/var-tag.exp
@@ -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 ""
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]