summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline19.C
blob: 76731a56eca40455775f89d57b07497fb38b318b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// { dg-options "-O1" }
// Origin: Scott Snyder <snyder@fnal.gov> via PR 1733.
//

struct TBtItem
{
   TBtItem();
};


struct TBtInnerNode
{
   TBtInnerNode();
   int     MaxIndex() const { return 10; }
};


TBtInnerNode::TBtInnerNode()
{
   new TBtItem[MaxIndex()+1];
}