* dwarf1.C, dwarf2.C, dwarf3.C: New tests.

From-SVN: r28469
This commit is contained in:
Alexandre Oliva 1999-08-03 12:51:02 +00:00 committed by Alexandre Oliva
parent a22b75d3f2
commit 5b8fa33160
4 changed files with 57 additions and 0 deletions

View File

@ -1,3 +1,7 @@
1999-08-03 Alexandre Oliva <oliva@dcc.unicamp.br>
* dwarf1.C, dwarf2.C, dwarf3.C: New tests.
1999-07-20 Alexandre Oliva <oliva@dcc.unicamp.br>
* template8.C, typeof1.C: New test.

View File

@ -0,0 +1,16 @@
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Chris McKay <chris.mckay@solipsys.com>
// Special g++ Options: -gdwarf
// crash test
template <class T = void>
struct foo {
static const int ELEMENTS = 1;
int bar[ELEMENTS];
};
foo<> bar;

View File

@ -0,0 +1,11 @@
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// Special g++ Options: -gdwarf
// crash test
typedef __java_boolean jboolean;
void foo() {}

View File

@ -0,0 +1,26 @@
// Build don't link:
// Copyright (C) 1999 Free Software Foundation
// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Andreas Stolcke <stolcke@speech.sri.com>
// Special g++ Options: -gdwarf
// crash test - XFAIL *-*-*
template <class T = void> struct foo {
int data[1];
};
template <class T = void> struct bar {
bar(foo<> *);
};
template <class T> bar<T>::bar(foo<> *x) {
*x;
}
void baz() {
foo<> *baz;
bar<> baar(baz);
}