2 /* { dg-do compile } */
3 /* { dg-options "-Wconversion" } */
5 unsigned char bar (void);
12 t
|= bar () & bar (); /* { dg-bogus "conversion from 'int' to 'unsigned char' may change value" "" { xfail c++ } } */
13 t
&= bar () & bar (); /* { dg-bogus "conversion from 'int' to 'unsigned char' may change value" "" { xfail c++ } } */
16 unsigned char a
= bar ();
18 t
|= bar () & a
; /* { dg-bogus "conversion from 'int' to 'unsigned char' may change value" "" { xfail c++ } } */
19 t
|= a
& bar (); /* { dg-bogus "conversion from 'int' to 'unsigned char' may change value" "" { xfail c++ } } */