testsuite: arm: Relax register selection [PR116623]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr40035.c
blob1bf1a7c4c4183d932f749cf4426807b3d6e31a56
1 typedef __SIZE_TYPE__ size_t;
2 void *memmove (void *dest, const void *src, size_t count);
3 size_t strlen (const char *s);
5 int
6 foo (char *param, char *val)
8 if (val)
10 if (val == param + strlen (param) + 1)
11 val[-1] = '=';
12 else if (val == param + strlen (param) + 2)
14 val[-2] = '=';
15 memmove (val - 1, val, strlen (val) + 1);
16 val--;
19 return 0;