From ea84ebc2bcd02ffee299c303ef33f182b524ae46 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 26 Nov 1998 20:57:42 +0000 Subject: [PATCH] added crash test From-SVN: r23915 --- gcc/testsuite/g++.old-deja/g++.other/lookup5.C | 4 +++- gcc/testsuite/g++.old-deja/g++.pt/friend37.C | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup5.C b/gcc/testsuite/g++.old-deja/g++.other/lookup5.C index 3924dcbd407..9fe04151142 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/lookup5.C +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup5.C @@ -1,9 +1,11 @@ // Build don't link: // Simplified from bug report by Paris Smaragdis +// crash test - XFAIL *-*-* + template class vector {}; class foo {}; int main() { foo f; - f.vector(); // gets bogus error - ICE - XFAIL *-*-* + f.vector(); // ERROR - not a method } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend37.C b/gcc/testsuite/g++.old-deja/g++.pt/friend37.C index c61239c86ac..2379d5f1da7 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/friend37.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/friend37.C @@ -1,6 +1,8 @@ // Build don't link: // Simplified from report by Volker Dobler +// crash test - XFAIL *-*-* + template class A { - friend int ice<>( int k=0 ); // gets bogus error - ICE - XFAIL *-*-* + friend int ice<>( int k=0 ); // ERROR - undeclared }; -- 2.30.2