added crash test

From-SVN: r23915
This commit is contained in:
Alexandre Oliva 1998-11-26 20:57:42 +00:00
parent fb63a8701e
commit ea84ebc2bc
2 changed files with 6 additions and 2 deletions

View File

@ -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
}

View File

@ -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
};