Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20081203-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR rtl-optimization/38281 */ |
2 /* Reporter: John Regehr <regehr@cs.utah.edu> */ | |
3 /* Testcase by Jakub Jelinek <jakub@redhat.com> */ | |
4 | |
5 inline unsigned short | |
6 foo (unsigned short x, unsigned short y) | |
7 { | |
8 if (y == 0) | |
9 return x; | |
10 return x / y; | |
11 } | |
12 | |
13 unsigned short a, b, c; | |
14 | |
15 extern int baz (int, int); | |
16 | |
17 void | |
18 bar (void) | |
19 { | |
20 int d = 0x3D75D162; | |
21 a = foo (b > d, baz (0, 1)); | |
22 for (c = 0; c; c = 1) | |
23 ; | |
24 } |