From f8827b1fff2ab6ad1cbc30b4ee10128f7b17d09b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 4 Jul 2007 09:58:55 +0000 Subject: [PATCH] include.c: Skip for VxWorks kernels. gcc/testsuite/ * gcc.dg/cpp/trad/include.c: Skip for VxWorks kernels. From-SVN: r126309 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/cpp/trad/include.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0e355f34ffa..a7fac373f4b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-07-04 Richard Sandiford + + * gcc.dg/cpp/trad/include.c: Skip for VxWorks kernels. + 2007-07-04 Richard Sandiford * gcc.dg/sh4a-fprun.c: Skip for VxWorks kernels. diff --git a/gcc/testsuite/gcc.dg/cpp/trad/include.c b/gcc/testsuite/gcc.dg/cpp/trad/include.c index ada8178ea9c..0798382d020 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/include.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/include.c @@ -2,7 +2,9 @@ /* Test that macros are not expanded in the <> quotes of #inlcude. */ -/* { dg-do preprocess } */ +/* vxWorksCommon.h uses the "#" operator to construct the name of an + include file, thus making the file incompatible with -traditional-cpp. */ +/* { dg-do preprocess { target { ! vxworks_kernel } } } */ #define __STDC__ 1 /* Stop complaints about non-ISO compilers. */ #define stdlib 1