summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error28.C
blob: 5ac15b7de1ee43ef4fa69d806bb0345ba055866f (plain)
1
2
3
4
5
6
7
8
// PR c++/35987
// { dg-do compile }

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