OSDN Git Service

PR c++/7053
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2003 20:20:27 +0000 (20:20 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2003 20:20:27 +0000 (20:20 +0000)
* g++.dg/template/friend20.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69351 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend20.C [new file with mode: 0644]

index 9a4b062..6342259 100644 (file)
@@ -1,5 +1,8 @@
 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
 
+       PR c++/7053
+       * g++.dg/template/friend20.C: New test.
+
        PR c++/7019
        * g++.dg/template/overload2.C: New test.
 
diff --git a/gcc/testsuite/g++.dg/template/friend20.C b/gcc/testsuite/g++.dg/template/friend20.C
new file mode 100644 (file)
index 0000000..496d52f
--- /dev/null
@@ -0,0 +1,15 @@
+template <class T>
+struct A
+{
+  friend void bar(A<T> a) {}
+};
+
+void bar(A<int>);
+
+int main()
+{
+  A<int> a;
+
+  bar(a);
+}
+