summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/min.c
blob: d8472702e9c08128f14aae0d31cc0e82a0ad1fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

static inline int
min (int a, int b)
{
  return a < b ? a : b;
}

int
test_00 (int a)
{
  return min (a, a + 8);
}

int
test_01 (int a)
{
  return min (a, a - 8);
}

/* { dg-final { scan-tree-dump-not "MIN_EXPR" "optimized" } } */