PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / pr44178.C
blob2df56692669706eef2f6865b54b4a62e1d26481b
1 // PR debug/44178
2 // { dg-do compile }
3 // { dg-options "-funroll-loops -fcompare-debug" { target i?86-*-* x86_64-*-* } }
4 // { dg-options "-fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } }
6 struct A
8   A ();
9   A (const A &) {}
10   A &operator = (const A &);
13 struct B
15   int u1;
16   A u2;
17   int u3;
18   int i;
21 B f1 (int *);
22 B f2 (int, int, int, int);
23 B f3 (B *, B *);
26 f4 (int x, int y, int z)
28   B b1, b2;
29   for (int i = x; i > 0; i--)
30     for (int j = y; j > 0; j--)
31       {
32         int k;
33         f1 (&k);
34         b2 = f2 (i, 0, 0, z);
35         if (b2.i) return b2;
36         f3 (&b1, &b2);
37       }
38   return b1;