(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
pr61325.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  typedef unsigned int wchar_t;
       4  typedef long unsigned int size_t;
       5  
       6  size_t
       7  wcstombs(char *s , const wchar_t *pwcs , size_t n)
       8  {
       9    int count = 0;
      10    
      11    if (n != 0) {
      12      do {
      13        if ((*s++ = (char) *pwcs++) == 0)
      14          break;
      15        count++;
      16      } while (--n != 0);
      17    }
      18    return count;
      19  }