Skip to content
Snippets Groups Projects
Commit 45eb2c70 authored by Marc Poulhiès's avatar Marc Poulhiès
Browse files

testsuite: refine gcc.dg/analyzer/fd-4.c test for newlib

Contrary to glibc, including stdio.h from newlib defines mode_t which
conflicts with the test's type definition.

.../gcc/testsuite/gcc.dg/analyzer/fd-4.c:19:3: error: redefinition of typedef 'mode_t' with different type
...
.../include/sys/types.h:189:25: note: previous declaration of 'mode_t' with type 'mode_t' {aka 'unsigned int'}

Defining _MODE_T_DECLARED skips the type definition.

gcc/testsuite/ChangeLog:

	* gcc.dg/analyzer/fd-4.c: Fix for newlib.
parent 24940464
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment