(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr103494.c
       1  /* { dg-do compile } */
       2  /* { dg-additional-options "-O3" } */
       3  
       4  typedef int T1;
       5  typedef signed char T2;
       6  
       7  T1
       8  f (T1 *d, T2 *x, int n)
       9  {
      10    unsigned char res = 0;
      11    for (int i = 0; i < n; ++i)
      12      res += d[x[i]];
      13    return res;
      14  }