re PR preprocessor/71681 (header.gcc file lookup is broken for -remap)
authorAndris Pavenis <andris.pavenis@iki.fi>
Fri, 21 Oct 2016 16:22:51 +0000 (19:22 +0300)
committerAndris Pavenis <andris@gcc.gnu.org>
Fri, 21 Oct 2016 16:22:51 +0000 (19:22 +0300)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/pr71681-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr71681-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/remap/header.gcc [new file with mode: 0644]

index 0754aec50040ee393186fd23d4a8081438969df1..b89c6ced59ec893c83875227a2ebd16d4a30d859 100644 (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
diff --git a/gcc/testsuite/gcc.dg/cpp/pr71681-1.c b/gcc/testsuite/gcc.dg/cpp/pr71681-1.c
new file mode 100644 (file)
index 0000000..a185351
--- /dev/null
@@ -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 (file)
index 0000000..162e366
--- /dev/null
@@ -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 (file)
index 0000000..a0e2b7e
--- /dev/null
@@ -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 (file)
index 0000000..600cfce
--- /dev/null
@@ -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 (file)
index 0000000..600cfce
--- /dev/null
@@ -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 (file)
index 0000000..0331f89
--- /dev/null
@@ -0,0 +1 @@
+a/t1.h a/t_1.h