diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-17 23:33:41 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-18 00:05:57 +0100 |
commit | c3e5138dccad66deda24fadb831f27881fa64b2d (patch) | |
tree | 2c9f58ddd552e5ef582c4ae55bd322f02aab87bc /gdb/testsuite/gdb.base/exprs.c | |
parent | 151fdbad7a4df43fb7e5b1ef2f84622aaaa2ddb5 (diff) | |
download | gdb-c3e5138dccad66deda24fadb831f27881fa64b2d.zip gdb-c3e5138dccad66deda24fadb831f27881fa64b2d.tar.gz gdb-c3e5138dccad66deda24fadb831f27881fa64b2d.tar.bz2 |
gdb.base/charset.{c,exp} C++ify
Adjust gdb.base/charset.{c,exp} so that the testcase works when
compiled as a C++ program.
wchar_t is built-in in C++, so don't make a phony typedef.
The "print /d" is so that we also get "1" instead of "true" in C++
mode.
gdb/testsuite/ChangeLog:
* gdb.base/charset.c [__cplusplus] (wchar_t, char16_t, char32_t):
Don't define.
(utf_32_string): Compile for both C and C++.
* gdb.base/charset.exp: Use "print /d".
Diffstat (limited to 'gdb/testsuite/gdb.base/exprs.c')
0 files changed, 0 insertions, 0 deletions