aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr87928.c
blob: 5edaa5f0676eceb2473ec05f983b69d4566e0f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O1 -mstackrealign -mabi=ms" } */

struct foo
{
  int a;
  int b;
  int c;
  int d;
};

__attribute__ ((sysv_abi))
struct foo bar (void)
{
  struct foo retval;

  retval.a = 1;
  retval.b = 2;
  retval.c = 3;
  retval.d = 4;

  return retval;
}