Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / dwarf3.C
blob3c01238a38ea43e3e420d83b37cbbdb2572e66a6
1 // { dg-do assemble }
2 // { dg-xfail-if "" { i386-pc-solaris* } { "*" } { "" } }
4 // Copyright (C) 1999 Free Software Foundation
6 // by Alexandre Oliva <oliva@dcc.unicamp.br>
7 // based on bug report by Andreas Stolcke <stolcke@speech.sri.com>
9 // Fails with dwarf debugging.
11 template <class T = void> struct foo {
12   int data[1];
15 template <class T = void> struct bar {
16   bar(foo<> *);
19 template <class T> bar<T>::bar(foo<> *x) {
20   *x;
23 void baz() {
24   foo<> *baz;
25   bar<> baar(baz);