modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr84383.c (about)

     1  /* PR tree-optimization/84383 */
     2  
     3  struct S { char *s; };
     4  void bar (struct S *);
     5  
     6  void
     7  foo (int a, char *b)
     8  {
     9    struct S c[4];
    10    bar (c);
    11    __builtin_strncpy (c[a].s, b, 32);
    12    c[a].s[31] = '\0';
    13    bar (c);
    14  }