Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/min.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-optimized" } */ | |
3 | |
4 static inline int | |
5 min (int a, int b) | |
6 { | |
7 return a < b ? a : b; | |
8 } | |
9 | |
10 int | |
11 test_00 (int a) | |
12 { | |
13 return min (a, a + 8); | |
14 } | |
15 | |
16 int | |
17 test_01 (int a) | |
18 { | |
19 return min (a, a - 8); | |
20 } | |
21 | |
22 /* { dg-final { scan-tree-dump-not "MIN_EXPR" "optimized" } } */ |