summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/dwarf1.C
blob: 3b932f7124ea2b77c2ec644636fcb01a5f1069fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

// Copyright (C) 1999 Free Software Foundation

// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Chris McKay <chris.mckay@solipsys.com>

// Used to fail with dwarf debugging.

template <class T = void>
struct foo {
  static const int ELEMENTS = 1;
  int bar[ELEMENTS];
};
foo<> bar;