summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20090219-1.c
blob: a5f973f68652d5382977b05ddaff9b1d07ee42a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* On ARM, BAR used to get a bogus number in E due to stack
   misalignment.  */

extern void abort (void);
extern void exit (int);

void
foo (void)
{
  int f = 0;

  void bar (int a, int b, int c, int d, int e)
    {
      if (e != 0)
	{
	  f = 1;
	  abort ();
	}
    }

  bar (0, 0, 0, 0, 0);
}

int
main (void)
{
  foo ();
  exit (0);
}