summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/stack-red-zone.c
blob: b9f0f99371ef13ae8fd42cadfdcb457502522206 (plain)
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;
}