* gdb.base/constvars.c (struct crass, struct crisp): New structs.
* gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
This commit is contained in:
parent
b5b0480a10
commit
abe1a5d0ef
@ -1,3 +1,8 @@
|
||||
2002-10-17 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* gdb.base/constvars.c (struct crass, struct crisp): New structs.
|
||||
* gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
|
||||
|
||||
2002-10-02 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* gdb.c++/casts.cc, gdb.c++/casts.exp: New test.
|
||||
|
@ -166,6 +166,11 @@ main (void)
|
||||
|
||||
const volatile char * const volatile vagary = &victor;
|
||||
const volatile unsigned char * const volatile vendor = &vicar;
|
||||
|
||||
/* various structs with const members */
|
||||
|
||||
struct crass { char * const ptr; } crass;
|
||||
struct crisp { char * const *ptr; } crisp;
|
||||
|
||||
/* misc. references */
|
||||
/*
|
||||
|
@ -278,6 +278,11 @@ proc do_constvar_tests {} {
|
||||
gdb_test "print *locust" " = 70"
|
||||
local_compiler_xfail_check
|
||||
gdb_test "ptype locust" "type = double \\* const"
|
||||
|
||||
local_compiler_xfail_check
|
||||
gdb_test "ptype crass" "type = struct crass \{\[\r\n\]+\[\ \t\]+char \\* const ptr;\[\r\n\]+\}"
|
||||
local_compiler_xfail_check
|
||||
gdb_test "ptype crisp" "type = struct crisp \{\[\r\n\]+\[\ \t\]+char \\* const \\*ptr;\[\r\n\]+\}"
|
||||
}
|
||||
|
||||
do_constvar_tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user