aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/debug/pr54828.C
blob: 80b9a3ce070b1ad1c7d23ed491dd8cbaccd07a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR debug/54828
// { dg-do compile }
// { dg-options "-g" }

struct T { T (); virtual ~T (); };
struct S : public virtual T { S (); virtual ~S (); };
int v;
void foo (char *);

S::S ()
{
  char s[v];
  foo (s);
}