gcc/testsuite/gcc.target/arm/pr59575.c
raw| 1 | /* PR target/59575 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target arm_arch_v7a_ok } */ |
| 4 | /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */ |
| 5 | /* { dg-options "-Os -g" } */ |
| 6 | /* { dg-add-options arm_arch_v7a } */ |
| 7 | |
| 8 | void foo (int *); |
| 9 | int *bar (int, long long, int); |
| 10 | |
| 11 | void |
| 12 | test (int *p) |
| 13 | { |
| 14 | if (p) |
| 15 | foo (p); |
| 16 | else if (p = bar (0, 1, 2)) |
| 17 | foo (p); |
| 18 | } |