summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-realign.c
blob: ab9360f49f9172c0d873f62f34242f6d96e4e9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-mstackrealign -O2" } */

extern void abort (void);

__attribute__((noinline)) static void foo (int i1, int i2, int i3)
{
  if (i3 != 3)
    abort ();
}

int main (int argc, char **argv)
{
  foo (1, 2, 3);
  return 0;
}