libstdc++: Fix undefined FILE* operations in test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 11:25:55 +0000 (11:25 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 11:25:55 +0000 (11:25 +0000)
commit2762cb1df686fc1ebcee23c7c4f0f6e8bf5a6abc
treed80852dd4b38594ea7c5b3d1f833b37078ac2d1b
parent127aa17e162384034254e93cd1ae37224c0ce197
libstdc++: Fix undefined FILE* operations in test

We only need to check that the constructor doesn't clear errno, so
there's no need to use an invalid FILE* for that.

libstdc++-v3/ChangeLog:

PR libstdc++/98001
* testsuite/ext/stdio_filebuf/char/79820.cc: Do not pass invalid
FILE* to constructor.
libstdc++-v3/testsuite/ext/stdio_filebuf/char/79820.cc