Commit ad11774f by Tamar Christina Committed by Tamar Christina

Fix traditional cpp test failure

	* gcc.dg/cpp/trad/trad.exp
	(dg-runtest): Added $srcdir/$subdir/ to Include dirs.
	* gcc.dg/cpp/trad/include.c: Use local header file.

From-SVN: r241957
parent fe73a332
2016-11-08 Tamar Christina <tamar.christina@arm.com>
PR testsuite/78136
* gcc.dg/cpp/trad/trad.exp
(dg-runtest): Added $srcdir/$subdir/ to Include dirs.
* gcc.dg/cpp/trad/include.c: Use local header file.
2016-11-08 Richard Biener <rguenther@suse.de> 2016-11-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/78205 PR tree-optimization/78205
......
...@@ -2,11 +2,5 @@ ...@@ -2,11 +2,5 @@
/* Test that macros are not expanded in the <> quotes of #inlcude. */ /* Test that macros are not expanded in the <> quotes of #inlcude. */
/* vxWorksCommon.h uses the "#" operator to construct the name of an #define builtins 1
include file, thus making the file incompatible with -traditional-cpp. #include <builtins.h> /* { dg-bogus "o such file or directory" } */
Newlib uses ## when including stdlib.h as of 2007-09-07. */
/* { dg-do preprocess { target { { ! vxworks_kernel } && { ! newlib } } } } */
#define __STDC__ 1 /* Stop complaints about non-ISO compilers. */
#define stdlib 1
#include <stdlib.h> /* { dg-bogus "o such file or directory" } */
...@@ -37,7 +37,7 @@ dg-init ...@@ -37,7 +37,7 @@ dg-init
# Main loop. # Main loop.
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
"" $DEFAULT_TRADCPPFLAGS "-I$srcdir/$subdir/" $DEFAULT_TRADCPPFLAGS
# All done. # All done.
dg-finish dg-finish
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment