modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/multdi-1.c (about)

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