1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_cortex_m } */
3 /* { dg-require-effective-target arm_thumb2_ok } */
4 /* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" "-mcpu=cortex-m7" } } */
5 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
6 /* { dg-options "-march=armv7e-m+fp -mfloat-abi=hard -mthumb -mslow-flash-data" } */
7 
8 /* From PR71607 */
9 
10 float b;
11 void fn1 ();
12 
13 float
fn2()14 fn2 ()
15 {
16   return 1.1f;
17 }
18 
19 void
fn3()20 fn3 ()
21 {
22   float a[2];
23   a[1] = b;
24   fn1 (a);
25 }
26