summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/empty1.C
blob: 66784fb28bfa95f422adc7f5fcb19fa9041edb63 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/43787
// Test that we don't try to copy *x.
// { dg-do run }

class empty_t {};

int main()
{
  empty_t* x = 0;
  empty_t y = *x;
}