From: Fariborz Jahanian Date: Wed, 29 Jan 2003 02:08:15 +0000 (+0000) Subject: Test for bug in read-back of the pending instantiation list from the PCH file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c96b939fa58bf961578424d76745ba9a5986a05d;p=gcc.git Test for bug in read-back of the pending instantiation list from the PCH file. From-SVN: r62063 --- 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;