aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/charset.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-06-23 16:26:05 +0000
committerTom Tromey <tromey@redhat.com>2009-06-23 16:26:05 +0000
commit85e306ed0eb2fb5032d459a13cfd345edf1bb2aa (patch)
tree718a1bbdb8b9c3608901375eb80024b749422ffb /gdb/testsuite/gdb.base/charset.exp
parent3188b0706d4d68b6cd4df669ca4557fc2f87736a (diff)
downloadgdb-85e306ed0eb2fb5032d459a13cfd345edf1bb2aa.zip
gdb-85e306ed0eb2fb5032d459a13cfd345edf1bb2aa.tar.gz
gdb-85e306ed0eb2fb5032d459a13cfd345edf1bb2aa.tar.bz2
gdb
PR gdb/10309: * c-lang.c (classify_type): Iterate over typedefs. * c-valprint.c (textual_element_type): Iterate over typedefs. gdb/testsuite * gdb.base/charset.exp (test_combination): Regression test. * gdb.base/charset.c (my_wchar_t): New typedef. (myvar): New global. (main): Set myvar.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.exp')
-rw-r--r--gdb/testsuite/gdb.base/charset.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index 8c23848..85885c8 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -599,6 +599,9 @@ if {$wchar_ok && $ucs2_ok} {
}
if {$wchar_ok && $ucs4_ok} {
test_combination L wide U UCS-4
+ # Regression test for a typedef to a typedef.
+ gdb_test "print myvar" "= \[0-9\]+ L'A'" \
+ "typedef to wchar_t"
}
if {$ucs2_ok && $ucs4_ok} {
test_combination u UCS-2 U UCS-4