libstdc++: Fix -Wsign-compare warning in std::string::resize_for_overwrite
[official-gcc.git] / gcc / testsuite / gcc.dg / pr108387.c
blob114186b6c5d3691d40af49467ec4bf5dca5255e1
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-ccp" } */
4 void bar2 (unsigned char, unsigned char);
6 void
7 foo1 (char c)
9 unsigned char t = c;
10 t *= 2;
11 unsigned char t1 = t << 7;
12 bar2 (t, t1);