(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr110166-1.c
       1  struct s
       2  {
       3    int t : 1;
       4    int t1 : 1;
       5  };
       6  
       7  int f(struct s t) __attribute__((noinline));
       8  int f(struct s t)
       9  {
      10     int c = t.t;
      11     int d = t.t1;
      12     if (c > d)
      13       t.t = d;
      14     else
      15       t.t = c;
      16    return t.t;
      17  }
      18  
      19  int main(void)
      20  {
      21          struct s t;
      22          for(int i = -1;i <= 0; i++)
      23          {
      24            for(int j = -1;j <= 0; j++)
      25            {
      26  		struct s t = {i, j};
      27                  int r = f(t);
      28                  int exp = i < j ? i : j;
      29                  if (exp != r)
      30                   __builtin_abort();
      31            }
      32          }
      33  }