PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wsign-compare-8.C
blob237ba84d5263a6d69788ad2154ffef0309e82b60
1 // PR c++/84171
2 // { dg-options "-Wsign-compare" }
4 bool foo (char c)
6   const int i = 0 = 0; // { dg-error "lvalue" }
7   return c = i;
8 } // { dg-warning "control reaches" }