aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/asan/pr81340.C
blob: 76ac08a9a5622c9fcde1c980a4381005b22674ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-options "-fsanitize=address -O2 -g -Wno-write-strings" }

class a {
  struct b {
    b(int, int);
  } c;

public:
  int d;
  a(char *) : c(0, d) {}
};
class e {
  int f(const int &, const int &, const int &, bool, bool, bool, int, bool);
};
class g {
public:
  static g *h();
  void i(a, void *);
};
int e::f(const int &, const int &, const int &, bool j, bool, bool, int, bool) {
  g::h()->i("", &j);
}