1 2 3 4 5 6 7 8 9 10 11 12
/* No stack red zone. PR38644. */ /* { dg-options "-mthumb -O2" } */ /* { dg-final { scan-assembler "ldrb\[^\n\]*\\n\[\t \]*add\[\t \]*sp" } } */ extern int doStreamReadBlock (int *, char *, int size, int); char readStream (int *s) { char c = 0; doStreamReadBlock (s, &c, 1, *s); return c; }