rt_gccstream/gcc/testsuite/g++.dg/other/error28.C

9 lines
113 B
C

// PR c++/35987
// { dg-do compile }
void
foo (char *p)
{
if (++p = true); // { dg-error "cannot convert" }
}