PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / pr44182.C
blob3e062a3fe8477d997a7fb80d6fad94c6391fb280
1 // PR tree-optimization/44182
2 // { dg-do compile }
3 // { dg-options "-fcompare-debug" }
5 struct S
7   int i;
8   S ();
9   ~S ();
10   void f1 ();
11   void f2 (S s)
12   {
13     f3 (s.i);
14     for (int j = 0; j < s.i; j++) f1 ();
15   }
16   void f3 (int j)
17   {
18     if (j > i) f1 ();
19   }
22 void
23 f (S *x)
25   x->f2 (S ());