mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 20:38:20 +08:00
* dwarf1.C, dwarf2.C, dwarf3.C: New tests.
From-SVN: r28469
This commit is contained in:
parent
a22b75d3f2
commit
5b8fa33160
@ -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.
|
||||
|
16
gcc/testsuite/g++.old-deja/g++.oliva/dwarf1.C
Normal file
16
gcc/testsuite/g++.old-deja/g++.oliva/dwarf1.C
Normal 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;
|
11
gcc/testsuite/g++.old-deja/g++.oliva/dwarf2.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.oliva/dwarf2.C
Normal 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() {}
|
26
gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C
Normal file
26
gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user