Debian Codegraph @

gcc/testsuite/g++.dg/analyzer/pr101522.C

raw
1 // { dg-do compile { target c++11 } }
2
3 double
4 sqrt ();
5
6 namespace std {
7 class gamma_distribution {
8 public:
9 gamma_distribution () : _M_param () {}
10
11 private:
12 struct param_type {
13 param_type () : _M_beta () { _M_a2 = 1 / ::sqrt (); }
14 double _M_beta, _M_a2;
15 };
16 param_type _M_param;
17 int _M_saved_available, _M_saved = 0, _M_param0 = 0;
18 };
19
20 struct fisher_f_distribution {
21 gamma_distribution _M_gd_x, _M_gd_y;
22 };
23 }
24
25 int
26 main ()
27 {
28 std::fisher_f_distribution d;
29
30 return 0;
31 }