Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr42505.c
blob5ddfea1da93fc62a0d86120d22cd7d3ee33d7b70
1 /* { dg-options "-Os" } */
2 /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
4 struct A {
5 int f1;
6 int f2;
7 };
9 int func(int c);
11 /* This function should not need to spill anything to the stack. */
12 int test(struct A* src, struct A* dst, int count)
14 while (count--) {
15 if (!func(src->f2)) {
16 return 0;
18 *dst++ = *src++;
21 return 1;