aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@gcc.gnu.org>1998-11-26 20:57:42 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-11-26 20:57:42 +0000
commitea84ebc2bcd02ffee299c303ef33f182b524ae46 (patch)
treeaf4607c740323ccf4a62ae330dc9a9518ece4345 /gcc
parentfb63a8701e265ea5faef1531a2a912bd5b441ab9 (diff)
downloadgcc-ea84ebc2bcd02ffee299c303ef33f182b524ae46.zip
gcc-ea84ebc2bcd02ffee299c303ef33f182b524ae46.tar.gz
gcc-ea84ebc2bcd02ffee299c303ef33f182b524ae46.tar.bz2
added crash test
From-SVN: r23915
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/lookup5.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/friend37.C4
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 3924dcb..9fe0415 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 <paris@media.mit.edu>
+// crash test - XFAIL *-*-*
+
template <class T> 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 c61239c..2379d5f 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 <volker@hugo.physik.uni-konstanz.de>
+// crash test - XFAIL *-*-*
+
template <class T> class A {
- friend int ice<>( int k=0 ); // gets bogus error - ICE - XFAIL *-*-*
+ friend int ice<>( int k=0 ); // ERROR - undeclared
};