From c96b939fa58bf961578424d76745ba9a5986a05d Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 29 Jan 2003 02:08:15 +0000 Subject: [PATCH] Test for bug in read-back of the pending instantiation list from the PCH file. From-SVN: r62063 --- gcc/testsuite/g++.dg/pch/uninst.C | 8 ++++++++ gcc/testsuite/g++.dg/pch/uninst.Hs | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 gcc/testsuite/g++.dg/pch/uninst.C create mode 100644 gcc/testsuite/g++.dg/pch/uninst.Hs diff --git a/gcc/testsuite/g++.dg/pch/uninst.C b/gcc/testsuite/g++.dg/pch/uninst.C new file mode 100644 index 00000000000..b7cd8bfc256 --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/uninst.C @@ -0,0 +1,8 @@ +#include "uninst.H" + +template void FOO() { } + +int main() { + FOO(); // stage 2 needs this + return min(5, 0); +} diff --git a/gcc/testsuite/g++.dg/pch/uninst.Hs b/gcc/testsuite/g++.dg/pch/uninst.Hs new file mode 100644 index 00000000000..2f2b6dd3e58 --- /dev/null +++ b/gcc/testsuite/g++.dg/pch/uninst.Hs @@ -0,0 +1,2 @@ +#include +using namespace std; -- 2.30.2