summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/const3.C
blob: faa9f810c19b31a9911560f8ffd1298f33c52c5f (plain)
1
2
3
4
5
6
7
// PR c++/18177

void foo()
{
  X; // { dg-error "" }
  const_cast<int&>(X);
}