Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 1999 Free Software Foundation
4
5 // by Alexandre Oliva <[email protected]>
6 // based on bug report by Andreas Stolcke <[email protected]>
7
8 // Fails with dwarf debugging.
9
10 template <class T = void> struct foo {
11 int data[1];
12 };
13
14 template <class T = void> struct bar {
15 bar(foo<> *);
16 };
17
18 template <class T> bar<T>::bar(foo<> *x) {
19 *x;
20 }
21
22 void baz() {
23 foo<> *baz;
24 bar<> baar(baz);
25 }