Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/multdi-1.c

raw
1 /* PR target/9348 */
2
3 void abort (void);
4
5 #define u_l_l unsigned long long
6 #define l_l long long
7
8 l_l mpy_res;
9
10 u_l_l mpy (long a, long b)
11 {
12 return (u_l_l) a * (u_l_l) b;
13 }
14
15 int main(void)
16 {
17 mpy_res = mpy(1,-1);
18 if (mpy_res != -1LL)
19 abort ();
20 return 0;
21 }
22