diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-08-31 00:07:38 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-08-31 00:07:38 +0000 |
commit | 4ecfc45373b2f6bf13ff978f8b6f9411ad13b764 (patch) | |
tree | 1a93335308b8e648e3693e8973cfdf8678cb1bfc /libgfortran/io/write.c | |
parent | 71b308914e31765f2110e6692685e0842c317bed (diff) | |
download | gcc-4ecfc45373b2f6bf13ff978f8b6f9411ad13b764.zip gcc-4ecfc45373b2f6bf13ff978f8b6f9411ad13b764.tar.gz gcc-4ecfc45373b2f6bf13ff978f8b6f9411ad13b764.tar.bz2 |
selftest: split out named_temp_file from temp_source_file
Split out a new base class for temp_source_file, named_temp_file,
moving the deletion to the base class dtor, so that we can write
out temporary files in other ways in selftests.
gcc/ChangeLog:
* selftest.c (selftest::named_temp_file::named_temp_file): New
ctor.
(selftest::temp_source_file::~temp_source_file): Move to...
(selftest::named_temp_file::~named_temp_file): ...here.
(selftest::test_named_temp_file): New function.
(selftest::selftest_c_tests): Call test_named_temp_file.
* selftest.h (class named_temp_file): New class.
(class temp_source_file): Convert to a subclass of named_temp_file.
From-SVN: r239875
Diffstat (limited to 'libgfortran/io/write.c')
0 files changed, 0 insertions, 0 deletions