1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-optimized"  } */
       3  struct list
       4  {
       5  	 struct list *next;
       6  };
       7  __attribute__ ((noinline))
       8  void
       9  kill(struct list *l, int *a)
      10  {
      11  	while (l)
      12  		l=l->next;
      13  	*a = 0;
      14  }
      15  void
      16  test(struct list *l, int *a)
      17  {
      18  	*a=12345;
      19  	kill (l, a);
      20  	return;
      21  }
      22  /* { dg-final { scan-tree-dump-not "12345" "optimized"} } */