view gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { 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);
}