Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/pr84138.C

raw
1 // PR c++/84138
2
3 char
4 foo()
5 {
6 const int i = 0 = 0; // { dg-error "lvalue required as left operand" }
7 return 1 ? 0 : (char)i;
8 }