summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20040217-1.c
blob: 7ca7388fe7cf5b5ad74c4b7fce1ce88007a76005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This used to ICE on s390x due to a bug in simplify_if_then_else.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */

extern void use (int);
void test (void)
{
  union 
   {
     unsigned long ul;
     signed char sc;
   } u;

  u.sc = 8;
  u.sc &= 25;

  use (u.sc);
}