re PR preprocessor/71681 (header.gcc file lookup is broken for -remap)

2016-10-21  Andris Pavenis  <andris.pavenis@iki.fi>

	PR preprocessor/71681
	* gcc.dg/cpp/pr71681-1.c: New testcase
	* gcc.dg/cpp/pr71681-2.c: Likewise
	* gcc.dg/cpp/remap/header.gcc: File for added test-cases
	* gcc.dg/cpp/remap/a/header.gcc: Likewise
	* gcc.dg/cpp/remap/a/t_1.h: Likewise
	* gcc.dg/cpp/remap/a/t_2.h: Likewise

From-SVN: r241415
This commit is contained in:
Andris Pavenis 2016-10-21 19:22:51 +03:00 committed by Andris Pavenis
parent 9d8ff2f63b
commit 67a6cac73c
7 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2016-10-21 Andris Pavenis <andris.pavenis@iki.fi>
PR preprocessor/71681
* gcc.dg/cpp/pr71681-1.c: New testcase
* gcc.dg/cpp/pr71681-2.c: Likewise
* gcc.dg/cpp/remap/header.gcc: File for added test-cases
* gcc.dg/cpp/remap/a/header.gcc: Likewise
* gcc.dg/cpp/remap/a/t_1.h: Likewise
* gcc.dg/cpp/remap/a/t_2.h: Likewise
2016-10-21 Jakub Jelinek <jakub@redhat.com>
PR target/78057

View file

@ -0,0 +1,5 @@
// PR preprocessor/71681
// { dg-do preprocess }
// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" }
#include "a/t1.h"

View file

@ -0,0 +1,5 @@
// PR preprocessor/71681
// { dg-do preprocess }
// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" }
#include "a/t2.h"

View file

@ -0,0 +1 @@
t2.h t_2.h

View file

@ -0,0 +1 @@
/* Test file for cpp option -remap test */

View file

@ -0,0 +1 @@
/* Test file for cpp option -remap test */

View file

@ -0,0 +1 @@
a/t1.h a/t_1.h