Debian Codegraph @

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

raw
1 // PR c++/35987
2 // { dg-do compile }
3
4 void
5 foo (char *p)
6 {
7 if (++p = true); // { dg-error "cannot convert" }
8 }