summaryrefslogtreecommitdiff
path: root/test/regression/expr1.c
blob: 132ce44c41d0146d5e77eb3992f5d96c224ae3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

struct list { int hd; struct list * tl; };

struct list * f(struct list ** p)
{
  return ((*p)->tl = 0);
}

int main(int argc, char ** argv)
{
  struct list l;
  l.tl = &l;
  f(&(l.tl));
  printf("Result: %d\n", (int) l.tl);
  return 0;
}