summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/new4.C
blob: 7b136dbf3978da5f6d781dbf3a211521da01de8a (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S {
  S();

  virtual int f() {
    new S[+f()];
    return 0;
  }
};