summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/string1.C
blob: 597b8619e723c619da975b8d9926a9e7b43f473e (plain)
1
2
3
4
5
6
7
8
extern void f (char*);

extern const char * const target = "foo";

void g ()
{
  f (target); // { dg-error "conversion" }
}