aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net1.C
blob: 72b8e72d77d23fcb20ce77cc0f74bca88c34b60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// Here is a net bug

class ivAllocation {
public:
  ivAllocation();
  int x_;
};

class TBScrollBoxInfo {
public:
  ivAllocation allocation_;
};

TBScrollBoxInfo* items_;

inline TBScrollBoxInfo item() {
  return items_[0];
}