summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr25771.C
blob: 6823494ea9bc802f5a5d228609e67228a510bd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-do compile } */
int  ggggg();
struct string {
  static int _S_empty_rep_storage[];
  void  _M_destroy();
  char* _M_rep;
  ~string()
  {
    if (_M_rep != (char*)&_S_empty_rep_storage )
      if (ggggg() <= 0)
        _M_destroy();
  }
};
extern void SDL_FreeSurface(int surface);
struct scoped_resource {
  ~scoped_resource()  {
    SDL_FreeSurface(1);
  }
};
struct surface {
  scoped_resource surface_;
};
struct button {
  string help_text_;
  string label_;
  surface image_;
};
struct scrollbar {
  string help_text_;
  button uparrow_;
};
scrollbar a;