summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr40657-1.c
blob: a6ac6c78a1cf0c796b70e83212483027905bfa60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-Os -march=armv5te -mthumb" }  */
/* { dg-require-effective-target arm_thumb1_ok } */
/* { dg-final { scan-assembler "pop.*r1.*pc" } } */
/* { dg-final { scan-assembler-not "sub\[\\t \]*sp,\[\\t \]*sp" } } */
/* { dg-final { scan-assembler-not "add\[\\t \]*sp,\[\\t \]*sp" } } */

extern void bar(int*);
int foo()
{
  int x;
  bar(&x);
  return x;
}