https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124103
Bug ID: 124103
Summary: FAIL: gcc.dg/plugin/diagnostic-test-paths-[125].c
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: nightstrike at gmail dot com
Target Milestone: ---
Created attachment 63671
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63671&action=edit
example to convert random() to rand()
The diagnostic-test-paths-*.c tests fail on non-POSIX systems due to the
absence of the random() function. The test doesn't appear to depend on the
specific differences between the POSIX-specified random() and the ISO
C-specified rand(), so changing to the latter allows the tests to pass on any
such system. In the case of the -2 test, the function is part of the tested
output, so both need to be modified.