aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr98628.c
blob: fa0ca961c465c2362c0c77829b2aae454749d35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-additional-options "-O1" } */

void foo(void *);
struct chanset_t help_subst_chan;
struct chanset_t *help_subst_chan_0_0;
struct chanset_t {
  struct chanset_t *next;
  char dname[];
};
void help_subst(char *writeidx) {
  for (;; help_subst_chan = *help_subst_chan_0_0) {
    foo(help_subst_chan.next->dname);
    if (help_subst_chan_0_0) {
      writeidx++;
      *writeidx++ = ' ';
    }
  }
}