(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr98304-2.c
       1  /* PR tree-optimization/98304 */
       2  
       3  #include "../../gcc.dg/pr98304-1.c"
       4  
       5  /* Runtime tests.  */
       6  int main() {
       7  
       8      /* Signed tests.  */
       9      if (foo(-42) != -42
      10          || foo(0) != 0
      11          || foo(63) != 63
      12          || foo(64) != 0
      13          || foo(65) != 1
      14          || foo(99) != 35) {
      15              __builtin_abort();
      16          }
      17      
      18      /* Unsigned tests.  */
      19      if (bar(42) != 42
      20          || bar(0) != 0
      21          || bar(63) != 63
      22          || bar(64) != 0
      23          || bar(65) != 1
      24          || bar(99) != 35) {
      25              __builtin_abort();
      26          }
      27  
      28      /* Should not simplify.  */
      29      if (corge(13) != 13
      30          || thud(13) != 13
      31          || qux(13) != 13
      32          || quux(13) != 13) {
      33              __builtin_abort();
      34          }
      35  
      36      return 0;
      37  }