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

     1  /* PR tree-optimization/83383 */
     2  
     3  unsigned long long int a = 16ULL;
     4  unsigned char b = 195;
     5  unsigned long long int c = ~0ULL;
     6  unsigned char d = 1;
     7  unsigned long long int e[2] = { 3625445792498952486ULL, 0 };
     8  unsigned long long int f[2] = { 0, 8985037393681294663ULL };
     9  unsigned long long int g = 5052410635626804928ULL;
    10  
    11  void
    12  foo ()
    13  {
    14    a = ((signed char) a) < b;
    15    c = (d ? e[0] : 0) - (f[1] * a ? 1 : g);
    16  }
    17  
    18  int
    19  main()
    20  {
    21    foo ();
    22    if (a != 1 || c != 3625445792498952485ULL)
    23      __builtin_abort ();
    24    return 0;
    25  }