PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr78791.c
blob987f2f16577e0aaa2edaf9f0f60e6a6859abba0c
1 /* PR target/78791 */
3 __attribute__((used, noinline, noclone)) unsigned long long
4 foo (unsigned long long x, unsigned long long y, unsigned long long z)
6 unsigned long long a = x / y;
7 unsigned long long b = x % y;
8 a |= z;
9 b ^= z;
10 return a + b;
13 int
14 main ()
16 if (foo (64, 7, 0) != 10 || foo (28, 3, 2) != 14)
17 __builtin_abort ();
18 return 0;