aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/forwprop-13.c
blob: aab4ff6febe6192248c05ac2a7f5facebb6ac001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

struct B {
    unsigned bit0 : 1;
    unsigned bit1 : 1;
};

void
foo (struct B *b)
{
  b->bit0 = b->bit0 | b->bit1;
}

/* { dg-final { scan-tree-dump-not "\\\(unsigned" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */