summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/const1.C
blob: 5e43bc0639730b4ffec30010a01022b003d62792 (plain)
1
2
3
4
5
// PR c++/14211

void f(char *str) {
  char *& m = const_cast<char *>(str); // { dg-error "" }
}