diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C b/gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C new file mode 100644 index 000000000..bbe5b0c9c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C @@ -0,0 +1,25 @@ +// { dg-do assemble } + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva <oliva@dcc.unicamp.br> +// based on bug report by Andreas Stolcke <stolcke@speech.sri.com> + +// Fails with dwarf debugging. + +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); +} |