PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / operator4.C
blob3ec1eb472dd926093708a58e6111c99dad952fae
1 // PR c++/38174
3 struct VolatileIntPtr {
4   operator int volatile *();
5 };
7 struct ConstIntPtr {
8   operator int const *();
9 };
11 void test_with_ptrs(VolatileIntPtr vip, ConstIntPtr cip) {
12   bool b1 = (vip == cip);
13   long p1 = vip - cip;