aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr117254.c
blob: c7a510677f13a9f4e2b9904083db103df8f03a04 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "" } */

int g;
void e(int s) {
  struct {
    __attribute__((nonstring)) char bn[g];
  } f;
  __builtin_strncpy (f.bn, f.bn, s);
}