diff options
author | Andris Pavenis <andris.pavenis@iki.fi> | 2016-10-21 19:22:51 +0300 |
---|---|---|
committer | Andris Pavenis <andris@gcc.gnu.org> | 2016-10-21 19:22:51 +0300 |
commit | 67a6cac73cffde2acfe155b6ad767632c71798fd (patch) | |
tree | 8cf21987471b8a87f2c522fbe93b2a0eab1b880c | |
parent | 9d8ff2f63be0ec81f2d90da84ec8cd8e800dbfd4 (diff) | |
download | gcc-67a6cac73cffde2acfe155b6ad767632c71798fd.zip gcc-67a6cac73cffde2acfe155b6ad767632c71798fd.tar.gz gcc-67a6cac73cffde2acfe155b6ad767632c71798fd.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr71681-1.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr71681-2.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/remap/header.gcc | 1 |
7 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0754aec..b89c6ce 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/cpp/pr71681-1.c b/gcc/testsuite/gcc.dg/cpp/pr71681-1.c new file mode 100644 index 0000000..a185351 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr71681-1.c @@ -0,0 +1,5 @@ +// PR preprocessor/71681 +// { dg-do preprocess } +// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" } + +#include "a/t1.h" diff --git a/gcc/testsuite/gcc.dg/cpp/pr71681-2.c b/gcc/testsuite/gcc.dg/cpp/pr71681-2.c new file mode 100644 index 0000000..162e366 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr71681-2.c @@ -0,0 +1,5 @@ +// PR preprocessor/71681 +// { dg-do preprocess } +// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" } + +#include "a/t2.h" diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc b/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc new file mode 100644 index 0000000..a0e2b7e --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc @@ -0,0 +1 @@ +t2.h t_2.h diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h b/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h new file mode 100644 index 0000000..600cfce8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h @@ -0,0 +1 @@ +/* Test file for cpp option -remap test */
\ No newline at end of file diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h b/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h new file mode 100644 index 0000000..600cfce8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h @@ -0,0 +1 @@ +/* Test file for cpp option -remap test */
\ No newline at end of file diff --git a/gcc/testsuite/gcc.dg/cpp/remap/header.gcc b/gcc/testsuite/gcc.dg/cpp/remap/header.gcc new file mode 100644 index 0000000..0331f89 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/header.gcc @@ -0,0 +1 @@ +a/t1.h a/t_1.h |