Re: [RFA] New tests for 'const' and 'volatile' expressions

Michael Elizabeth Chastain
2001-11-15T06:09:58Z

The 5.1 branch was cut in July, so it happened before Michael Snyder's
changes.

Here are samples from some gdb.log files (native i686-pc-linux-gnu).
It looks like this with four different compilers; I just picked one
to represent.

Michael C

# gdb-HEAD/gcc-3.0.2/gdb.log
(gdb) whatis (const char) v_char^M
type = const char^M
(gdb) PASS: gdb.base/cvexpr.exp: (const char)
whatis (const signed char) v_signed_char^M
type = const signed char^M
(gdb) PASS: gdb.base/cvexpr.exp: (const signed char)
whatis (const unsigned char) v_unsigned_char^M
type = const unsigned char^M
(gdb) PASS: gdb.base/cvexpr.exp: (const unsigned char)

# gdb-gdb_5_1-2001-07-29-branch/gcc-3.0.2/gdb.log
(gdb) whatis (const char) v_char^M
type = char^M
(gdb) FAIL: gdb.base/cvexpr.exp: (const char)
whatis (const signed char) v_signed_char^M
type = signed char^M
(gdb) FAIL: gdb.base/cvexpr.exp: (const signed char)
whatis (const unsigned char) v_unsigned_char^M
type = unsigned char^M
(gdb) FAIL: gdb.base/cvexpr.exp: (const unsigned char)