OSDN Git Service

Test for bug in read-back of the pending instantiation list from the PCH file.
authorfjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2003 02:08:15 +0000 (02:08 +0000)
committerfjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2003 02:08:15 +0000 (02:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62063 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/pch/uninst.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pch/uninst.Hs [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/pch/uninst.C b/gcc/testsuite/g++.dg/pch/uninst.C
new file mode 100644 (file)
index 0000000..b7cd8bf
--- /dev/null
@@ -0,0 +1,8 @@
+#include "uninst.H"
+
+template <class Type> void FOO() {   }
+
+int  main() {
+               FOO<char>();                    // stage 2 needs this
+               return min<unsigned long>(5, 0);
+}
diff --git a/gcc/testsuite/g++.dg/pch/uninst.Hs b/gcc/testsuite/g++.dg/pch/uninst.Hs
new file mode 100644 (file)
index 0000000..2f2b6dd
--- /dev/null
@@ -0,0 +1,2 @@
+#include <bits/stl_algobase.h>
+using namespace std;