summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/20170228-1.c
blob: 575fbce528dfd90d50539f6e87e2f01b205469e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR target/79749 */
/* Reported by Rainer Orth <ro@gcc.gnu.org> */

/* { dg-do run } */
/* { dg-options "-fomit-frame-pointer" } */

extern void abort (void);

int foo (int x1, int x2, int x3, int x4, int x5, int x6, int x7)
{
  return x7;
}

int main (void)
{
  if (foo (100, 200, 300, 400, 500, 600, 700) != 700)
    abort ();

  return 0;
}