https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108305
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That test expects fopen("noreplace", "wx") to fail if the file already exists.
Does this fail too?
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
int main()
{
FILE* f = fopen("noreplace", "w");
assert(f != NULL);
fclose(f);
f = fopen("noreplace", "wx");
assert(f == NULL);
}
