1  /* PR target/59575 */
       2  /* { dg-do compile } */
       3  /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
       4  /* { dg-options "-Os -g -march=armv7-a" } */
       5  
       6  void foo (int *);
       7  int *bar (int, long long, int);
       8  
       9  void
      10  test (int *p)
      11  {
      12    if (p)
      13      foo (p);
      14    else if (p = bar (0, 1, 2))
      15      foo (p);
      16  }