friend5.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 11 Oct 1998 19:23:16 +0000 (19:23 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sun, 11 Oct 1998 19:23:16 +0000 (19:23 +0000)
* g++.old-deja/g++.other/friend5.C: New test.  bogus friend
declaration causes ICE

From-SVN: r22993

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

index f421283a5e71b0cae9212c1711613130f74d9bfd..d3b17f21773e2812b359ee8d245504f06097a709 100644 (file)
@@ -1,3 +1,8 @@
+1998-10-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * g++.old-deja/g++.other/friend5.C: New test.  bogus friend
+       declaration causes ICE
+
 1998-10-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * g++.old-deja/g++.ns/main1.C: New test.  main() should only be
diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend5.C b/gcc/testsuite/g++.old-deja/g++.other/friend5.C
new file mode 100644 (file)
index 0000000..dd005b1
--- /dev/null
@@ -0,0 +1,9 @@
+// Build don't link:
+
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+// crash test - XFAIL *-*-*
+
+struct A {
+       friend bool();
+};