diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-07-02 20:05:21 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-07-02 20:05:21 +0000 |
commit | dbf96d49454d608b5cb9e39e341e13b60ec7965e (patch) | |
tree | 2cefe7783c5b50896e82533f6e80f65347c8ef70 /gcc/gcse.c | |
parent | 7edd4c1885f4ecc31b80f157f7aa96ccd40d1075 (diff) | |
download | gcc-dbf96d49454d608b5cb9e39e341e13b60ec7965e.zip gcc-dbf96d49454d608b5cb9e39e341e13b60ec7965e.tar.gz gcc-dbf96d49454d608b5cb9e39e341e13b60ec7965e.tar.bz2 |
selftest: introduce class auto_fix_quotes
This patch moves a workaround for locale differences from a
selftest in pretty-print.c to selftest.h/c to make it reusable; I need
this for a selftest in a followup patch.
gcc/ChangeLog:
* pretty-print.c (selftest::test_pp_format): Move save and restore
of quotes to class auto_fix_quotes, and add an instance.
* selftest.c: Include "intl.h".
(selftest::auto_fix_quotes::auto_fix_quotes): New ctor.
(selftest::auto_fix_quotes::~auto_fix_quotes): New dtor.
* selftest.h (selftest::auto_fix_quotes): New class.
From-SVN: r262317
Diffstat (limited to 'gcc/gcse.c')
0 files changed, 0 insertions, 0 deletions