[committed] Add a testcase for PR60400

Jakub Jelinek jakub@redhat.com
Mon Mar 3 11:14:00 GMT 2014


Hi!

I've committed following testcase for an ICE fixed by r200376
on the trunk.  When the fix is backported to 4.8/4.7 branches,
the testcase should be added there too.

2014-03-03  Jakub Jelinek  <jakub@redhat.com>

	PR preprocessor/60400
	* c-c++-common/cpp/pr60400.c: New test.
	* c-c++-common/cpp/pr60400-1.h: New file.
	* c-c++-common/cpp/pr60400-2.h: New file.

--- gcc/testsuite/c-c++-common/cpp/pr60400.c.jj	2014-03-03 11:56:07.524663686 +0100
+++ gcc/testsuite/c-c++-common/cpp/pr60400.c	2014-03-03 11:55:56.476728948 +0100
@@ -0,0 +1,13 @@
+/* PR preprocessor/60400 */
+/* { dg-do compile } */
+/* { dg-options "-trigraphs -Wtrigraphs" } */
+
+??=include "pr60400-1.h"
+??=include "pr60400-2.h"
+
+/* { dg-warning "trigraph" "" { target *-*-* } 1 } */
+/* { dg-warning "trigraph" "" { target *-*-* } 2 } */
+/* { dg-warning "trigraph" "" { target *-*-* } 3 } */
+/* { dg-warning "trigraph" "" { target *-*-* } 4 } */
+/* { dg-warning "trigraph" "" { target *-*-* } 5 } */
+/* { dg-warning "trigraph" "" { target *-*-* } 6 } */
--- gcc/testsuite/c-c++-common/cpp/pr60400-1.h.jj	2014-03-03 11:56:01.322701306 +0100
+++ gcc/testsuite/c-c++-common/cpp/pr60400-1.h	2014-03-03 11:52:40.000000000 +0100
@@ -0,0 +1,3 @@
+??=ifndef PR60400_1_H
+??=define PR60400_1_H
+??=endif
--- gcc/testsuite/c-c++-common/cpp/pr60400-2.h.jj	2014-03-03 11:56:04.678681720 +0100
+++ gcc/testsuite/c-c++-common/cpp/pr60400-2.h	2014-03-03 11:52:55.000000000 +0100
@@ -0,0 +1,4 @@
+??=ifndef PR60400_2_H
+??=define PR60400_2_H
+??=include "pr60400-1.h"
+??=endif

	Jakub



More information about the Gcc-patches mailing list