PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / arrow4.C
blob89e78221958605980fd01a450d52c64bd4441417
1 // PR c++/56895
2 // { dg-do compile }
4 void fn (int *);
5 void fn (int);
6 extern struct A { bool foo (); A bar (); } *a;
8 template <int>
9 void
10 baz ()
12   fn (a->bar().foo() ? 1 : 0);
15 void
16 test ()
18   baz<0> ();