PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / empty1.C
blob66784fb28bfa95f422adc7f5fcb19fa9041edb63
1 // PR c++/43787
2 // Test that we don't try to copy *x.
3 // { dg-do run }
5 class empty_t {};
7 int main()
9   empty_t* x = 0;
10   empty_t y = *x;