1  /* { dg-do compile } */
       2  /* { dg-options "-O3 -fno-stack-protector" } */
       3  
       4  static inline void memset_s(void* s, int n) {
       5    volatile unsigned char * p = s;
       6    for(int i = 0; i < n; ++i) {
       7      p[i] = 0;
       8    }
       9  }
      10  
      11  void test() {
      12    unsigned char x[4];
      13    memset_s(x, sizeof x);
      14  }
      15  
      16  /* { dg-final { scan-assembler-times "mov" 4 } } */