mla-1.c: Ignore warnings about conflicting switches.
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr39839.c
blobb5628a93daf8cd8b341000b267d9df11dd805e1c
1 /* { dg-options "-mthumb -Os -march=armv5te -mthumb-interwork -fpic" } */
2 /* { dg-require-effective-target arm_thumb1_ok } */
3 /* { dg-prune-output "switch .* conflicts with" } */
4 /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
6 struct S
8 int count;
9 char *addr;
12 void func(const char*, const char*, int, const char*);
14 /* This function should not need to spill to the stack. */
15 void test(struct S *p)
17 int off = p->count;
18 while (p->count >= 0)
20 const char *s = "xyz";
21 if (*p->addr) s = "pqr";
22 func("abcde", p->addr + off, off, s);
23 p->count--;