diff options
author | Tom Tromey <tromey@redhat.com> | 2011-05-23 20:27:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-05-23 20:27:23 +0000 |
commit | c50491a797e94e65b9692ed05ff7536ee3df5b30 (patch) | |
tree | 227d6c52a602e4fd96cd80aaea1c60b7d474aa55 /gdb/testsuite/gdb.base/charset.c | |
parent | 1ce749055f5e2ab5ae4450ff10082745021ecce8 (diff) | |
download | gdb-c50491a797e94e65b9692ed05ff7536ee3df5b30.zip gdb-c50491a797e94e65b9692ed05ff7536ee3df5b30.tar.gz gdb-c50491a797e94e65b9692ed05ff7536ee3df5b30.tar.bz2 |
gdb
* c-lang.c (evaluate_subexp_c): Use expect_type if it is not
NULL.
gdb/testsuite
* gdb.base/charset.exp (string_display): Add tests to assign to
arrays.
* gdb.base/charset.c (short_array, int_array, long_array): New.
Diffstat (limited to 'gdb/testsuite/gdb.base/charset.c')
-rw-r--r-- | gdb/testsuite/gdb.base/charset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/charset.c b/gdb/testsuite/gdb.base/charset.c index 644fe47..df56c45 100644 --- a/gdb/testsuite/gdb.base/charset.c +++ b/gdb/testsuite/gdb.base/charset.c @@ -73,6 +73,11 @@ char32_t *String32; typedef wchar_t my_wchar_t; my_wchar_t myvar; +/* Some arrays for simple assignment tests. */ +short short_array[3]; +int int_array[3]; +long long_array[3]; + void init_string (char string[], char x, |