gcc/testsuite/gcc.target/s390/pr68015.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -march=z196" } */ |
| 3 | |
| 4 | extern long useme (long, ...); |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | long secs = useme (41); |
| 10 | long utc_secs = useme (42); |
| 11 | long h, m; |
| 12 | |
| 13 | utc_secs = useme (42); |
| 14 | h = secs / 3600; |
| 15 | m = secs / 60; |
| 16 | if (utc_secs >= 86400) |
| 17 | { |
| 18 | m = 59; |
| 19 | h--; |
| 20 | if (h < 0) |
| 21 | h = 23; |
| 22 | } |
| 23 | useme (h, m); |
| 24 | } |