2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / max.c
blobe9798104228440f075a7dd1397d394e0fe23dd5d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 static inline int
5 max (int a, int b)
7 return a < b ? b : a;
10 int
11 test_00 (int a)
13 return max (a, a + 8);
16 int
17 test_01 (int a)
19 return max (a, a - 8);
22 /* { dg-final { scan-tree-dump-not "MAX_EXPR" "optimized" } } */