diff options
author | Tom Tromey <tromey@redhat.com> | 2009-06-23 16:26:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-06-23 16:26:05 +0000 |
commit | 85e306ed0eb2fb5032d459a13cfd345edf1bb2aa (patch) | |
tree | 718a1bbdb8b9c3608901375eb80024b749422ffb /gdb/testsuite/gdb.base/charset.c | |
parent | 3188b0706d4d68b6cd4df669ca4557fc2f87736a (diff) | |
download | binutils-gdb-85e306ed0eb2fb5032d459a13cfd345edf1bb2aa.tar.gz |
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.c')
-rw-r--r-- | gdb/testsuite/gdb.base/charset.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c index 55a50ce57b2..b61e047e954 100644 --- a/gdb/testsuite/gdb.base/charset.c +++ b/gdb/testsuite/gdb.base/charset.c @@ -65,6 +65,10 @@ typedef unsigned int char32_t; char16_t uvar; char32_t Uvar; +/* A typedef to a typedef should also work. */ +typedef wchar_t my_wchar_t; +my_wchar_t myvar; + void init_string (char string[], char x, @@ -169,5 +173,7 @@ int main () init_ucs4 (); + myvar = ucs_4_string[7]; + return 0; /* all strings initialized */ } |