diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 16:13:35 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 16:13:35 +0000 |
commit | 2f608a3a9752190066db4996ab855b423033b580 (patch) | |
tree | 40188e72ff610f9cc5a1eeb167481b0eb2ab4309 /gdb/testsuite/gdb.base/constvars.exp | |
parent | aa2e2d8d772c0ece5b6c4685228c159979841a5d (diff) | |
download | gdb-2f608a3a9752190066db4996ab855b423033b580.zip gdb-2f608a3a9752190066db4996ab855b423033b580.tar.gz gdb-2f608a3a9752190066db4996ab855b423033b580.tar.bz2 |
gdb:
* dwarf2read.c (read_tag_const_type): Handle const arrays.
gdb/testsuite:
* gdb.base/constvars.c (logical, lugged, luck, lunar, lumen, lurk,
lush, lynx) New constant.
* gdb.base/constvars.exp: Test const array types.
* gdb.dwarf2/dw2-strp.exp: Add const qualifier for ptype tests.
Diffstat (limited to 'gdb/testsuite/gdb.base/constvars.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/constvars.exp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.exp b/gdb/testsuite/gdb.base/constvars.exp index 4d698d8..375f360 100644 --- a/gdb/testsuite/gdb.base/constvars.exp +++ b/gdb/testsuite/gdb.base/constvars.exp @@ -253,6 +253,23 @@ proc do_constvar_tests {} { gdb_test "ptype locust" "type = double \\* const" local_compiler_xfail_check + gdb_test "ptype logical" "type = const char \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lugged" "type = const unsigned char \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype luck" "type = const short( int)? \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lunar" "type = const (unsigned short|short unsigned)( int)? \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lumen" "type = const long( int)? \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lurk" "type = const (unsigned long|long unsigned)( int)? \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lush" "type = const float \\\[2\\\]" + local_compiler_xfail_check + gdb_test "ptype lynx" "type = const double \\\[2\\\]" + + local_compiler_xfail_check local_compiler_xfail_check_2 gdb_test "ptype crass" "type = struct crass \{\[\r\n\]+\[\ \t\]+char \\* const ptr;\[\r\n\]+\}" local_compiler_xfail_check |