blob: c0c3cfc45cb41a8b587d4a197337080018b5bb61 [file] [log] [blame]
/* PR c/101537 */
/* { dg-do compile } */
/* { dg-options "-Wconversion" } */
int
foo ()
{
int aaa = 1;
unsigned char bbb = 0;
bbb |= aaa ? 1 : 0;
return bbb;
}
int
bar (unsigned char x, int f)
{
x |= f ? 1 : 0;
return x;
}
int
baz (unsigned char x, int f)
{
x = x | f ? 1 : 0;
return x;
}