gcc/testsuite/g++.dg/asan/pr81340.C
raw| 1 | // { dg-options "-fsanitize=address -O2 -g -Wno-write-strings" } |
| 2 | |
| 3 | class a { |
| 4 | struct b { |
| 5 | b(int, int); |
| 6 | } c; |
| 7 | |
| 8 | public: |
| 9 | int d; |
| 10 | a(char *) : c(0, d) {} |
| 11 | }; |
| 12 | class e { |
| 13 | void f(const int &, const int &, const int &, bool, bool, bool, int, bool); |
| 14 | }; |
| 15 | class g { |
| 16 | public: |
| 17 | static g *h(); |
| 18 | void i(a, void *); |
| 19 | }; |
| 20 | void e::f(const int &, const int &, const int &, bool j, bool, bool, int, bool) { |
| 21 | g::h()->i("", &j); |
| 22 | } |