aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/binop-andeq2.c
blob: 895262fc17e6aedbcd5eb1ea14864085b8da05e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* PR tree-optimization/111431 */

int
foo (int a)
{
  int b = a == 1025;
  return (a & b);
}

/* { dg-final { scan-tree-dump-not "return 0"  "optimized" } } */
/* { dg-final { scan-tree-dump-not " & "  "optimized" } } */
/* { dg-final { scan-tree-dump-times " == 1025;" 1  "optimized" } } */