testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr103881.c
blobbb3f53bcf7ba1955b24f4afc3b869b51adb3f034
1 /* PR c/103881 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wconversion" } */
5 unsigned char bar (void);
7 void
8 foo (void)
10 unsigned char t = 0;
11 t |= bar ();
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++ } } */
14 t = bar () & bar ();
16 unsigned char a = bar ();
17 t |= a & a;
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++ } } */