From 019df41c9647937186705d54b57b72eaa0a82be7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 4 Jan 2007 00:53:18 +0100 Subject: [PATCH] re PR c++/28217 (ICE in tree_int_cst_sgn) PR c++/28217 * g++.dg/pch/template-1.C: New test. * g++.dg/pch/template-1.Hs: New file. From-SVN: r120410 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/pch/template-1.C | 8 ++++++++ gcc/testsuite/g++.dg/pch/template-1.Hs | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/pch/template-1.C create mode 100644 gcc/testsuite/g++.dg/pch/template-1.Hs diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 954e876a730..daab71d0fe0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-01-03 Jakub Jelinek + + PR c++/28217 + * g++.dg/pch/template-1.C: New test. + * g++.dg/pch/template-1.Hs: New file. + 2007-01-03 Andrew Pinski PR middle-end/30353 diff --git a/gcc/testsuite/g++.dg/pch/template-1.C b/gcc/testsuite/g++.dg/pch/template-1.C new file mode 100644 index 00000000000..c1718a991a4 --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/template-1.C @@ -0,0 +1,8 @@ +// PR c++/28217 + +#include "template-1.H" + +int +main (void) +{ +} diff --git a/gcc/testsuite/g++.dg/pch/template-1.Hs b/gcc/testsuite/g++.dg/pch/template-1.Hs new file mode 100644 index 00000000000..afdb13f0862 --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/template-1.Hs @@ -0,0 +1,5 @@ +template struct A +{ + enum { a, b = a }; + void foo(A); +};