]> gcc.gnu.org Git - gcc.git/commitdiff
* friend1.C: New test.
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 15 Feb 2001 12:54:38 +0000 (12:54 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 15 Feb 2001 12:54:38 +0000 (12:54 +0000)
From-SVN: r39714

gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
gcc/testsuite/g++.old-deja/g++.oliva/friend1.C [new file with mode: 0644]

index 73b0aa47c44226f586b9f85685c88d62645bb924..756c72bba73264f5fed6ca560190133df4a8a8a6 100644 (file)
@@ -1,3 +1,7 @@
+2001-02-15  Alexandre Oliva  <aoliva@redhat.com>
+
+       * friend1.C: New test.
+
 2000-05-28  Alexandre Oliva  <aoliva@cygnus.com>
 
        * expr2.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C b/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C
new file mode 100644 (file)
index 0000000..aea98e1
--- /dev/null
@@ -0,0 +1,12 @@
+// Build don't link:
+
+// Copyright (C) 2001 Free Software Foundation
+
+// by Alexandre Oliva <aoliva@redhat.com>
+
+// We shouldn't warn about bar referring to a non-template in this case.
+
+template <typename T>
+class foo {
+  friend int bar(int);
+};
This page took 0.06375 seconds and 5 git commands to generate.