Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr116814-1.C

raw
1 /* { dg-do compile { target { ia32 } } } */
2 /* { dg-options "-O2" } */
3
4 unsigned long long GetTimeFromFrames(int);
5 unsigned long long GetMicroSeconds();
6
7 void DequeueEvent(unsigned frame) {
8 long long frame_time = GetTimeFromFrames(frame);
9 unsigned long long current_time = GetMicroSeconds();
10
11 DequeueEvent(frame_time < current_time ? 0 : frame_time - current_time);
12 }