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

     1  typedef struct
     2  {
     3    unsigned a, b, c, d;
     4  } t1;
     5  
     6  f (t1 *ps)
     7  {
     8      ps->a = 10000;
     9      ps->b = ps->a / 3;
    10      ps->c = 10000;
    11      ps->d = ps->c / 3;
    12  }
    13  
    14  main ()
    15  {
    16    t1 s;
    17    f (&s);
    18    if (s.a != 10000 || s.b != 3333 || s.c != 10000 || s.d != 3333)
    19      abort ();
    20    exit (0);
    21  }