Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr27364.c

raw
1 void exit (int);
2
3 int f(unsigned number_of_digits_to_use)
4 {
5 if (number_of_digits_to_use >1294)
6 return 0;
7 return (number_of_digits_to_use * 3321928 / 1000000 + 1) /16;
8 }
9
10 int main(void)
11 {
12 if (f(11) != 2)
13 __builtin_abort ();
14 exit (0);
15 }