From a1e1a4515426eec96e372d8e4ff2cf19e21620e3 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 19 Dec 2006 02:17:15 +0000 Subject: [PATCH] include.c: #include stdlib.h instead of stdio.h... * gcc.dg/cpp/trad/include.c: #include stdlib.h instead of stdio.h, as newlib's stdio.h uses non-traditional cpp constructs. From-SVN: r120038 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/cpp/trad/include.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ddbda0c8cb..a5a2d1d83ac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-12-19 Ben Elliston + + * gcc.dg/cpp/trad/include.c: #include stdlib.h instead of stdio.h, + as newlib's stdio.h uses non-traditional cpp constructs. + 2006-12-18 Brooks Moses * gfortran.dg/advance.f90: Renamed to advance_1.f90 diff --git a/gcc/testsuite/gcc.dg/cpp/trad/include.c b/gcc/testsuite/gcc.dg/cpp/trad/include.c index 9ca184b5d82..ada8178ea9c 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/include.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/include.c @@ -4,6 +4,6 @@ /* { dg-do preprocess } */ -#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */ -#define stdio 1 -#include /* { dg-bogus "o such file or directory" } */ +#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */ +#define stdlib 1 +#include /* { dg-bogus "o such file or directory" } */