New file.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Mon, 14 Jun 1999 15:57:27 +0000 (15:57 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Mon, 14 Jun 1999 15:57:27 +0000 (15:57 +0000)
From-SVN: r27521

gcc/testsuite/g++.old-deja/g++.ns/template11.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template11.C b/gcc/testsuite/g++.old-deja/g++.ns/template11.C
new file mode 100644 (file)
index 0000000..ac78084
--- /dev/null
@@ -0,0 +1,15 @@
+void foo(){}
+
+namespace Bar{
+  template<class X>
+    class Y{
+      friend void foo(Y<X>){}
+    };
+}
+
+int main()
+{
+  Bar::Y<int> y;
+  foo(y);
+  foo();
+}