aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.c-torture/compile/pr26622.c
blob: aea991ece35c5c78ffae24170f45630d766919c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR middle-end/26622
   fold_ternary used to create a tree with mismatching types, causing
   (const_int 128) to appear in QImode rtx.  */

unsigned char g;

unsigned long long
foo (void)
{
  return ((long long) ((g & 0x80) != 0)) << 7;
}