x
authorJason Merrill <jason@gcc.gnu.org>
Tue, 14 Jul 1998 16:20:47 +0000 (12:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 14 Jul 1998 16:20:47 +0000 (12:20 -0400)
From-SVN: r21146

gcc/testsuite/g++.old-deja/g++.ns/ns16.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/template4.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/explicit69.C

diff --git a/gcc/testsuite/g++.old-deja/g++.ns/ns16.C b/gcc/testsuite/g++.old-deja/g++.ns/ns16.C
new file mode 100644 (file)
index 0000000..1f04ae8
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't link:
+
+class Y {
+public:
+  void operator +(int) const;
+};
+
+namespace X {
+  extern Y const& z;
+}
+
+void f(void) {
+  X::z + 1;
+}
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template4.C b/gcc/testsuite/g++.old-deja/g++.ns/template4.C
new file mode 100644 (file)
index 0000000..dd32444
--- /dev/null
@@ -0,0 +1,17 @@
+namespace NS
+{
+template <typename T>
+void solver (){}
+
+}
+
+template<typename T>
+void solver(){}
+
+int main()
+{
+  solver<double>();
+  NS::solver<double>();
+}
+
+
index 671cf005de5093709baebe7a557d3e1ec3b3d26d..f42b96d55b29693834652b96b27b78a24a25d2fc 100644 (file)
@@ -1,2 +1,2 @@
 //Build don't link:
-template class x {}; // ERROR - not a template instantiation
+template class x {}; // ERROR - not a template instantiation XFAIL *-*-*