diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-12-19 02:17:15 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2006-12-19 13:17:15 +1100 |
commit | a1e1a4515426eec96e372d8e4ff2cf19e21620e3 (patch) | |
tree | a6a979fd0812dd98d195cd3c13fcce61053e07a0 | |
parent | d448860e15873adc8c162aac4a5dfa7eb448ef5d (diff) | |
download | gcc-a1e1a4515426eec96e372d8e4ff2cf19e21620e3.zip gcc-a1e1a4515426eec96e372d8e4ff2cf19e21620e3.tar.gz gcc-a1e1a4515426eec96e372d8e4ff2cf19e21620e3.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | 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 1ddbda0..a5a2d1d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-12-19 Ben Elliston <bje@au.ibm.com> + + * 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 <brooks.moses@codesourcery.com> * 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 9ca184b..ada8178 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 <stdio.h> /* { dg-bogus "o such file or directory" } */ +#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */ +#define stdlib 1 +#include <stdlib.h> /* { dg-bogus "o such file or directory" } */ |