summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/m68k/pr41302.c
blob: c3679923e658483a0eb263d9316aca445382985f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "move.l \%d0,\%a0" { target *-*-*linux* } } } */

struct pts {
  int c;
};

unsigned int bar (struct pts *a, int b);

struct pts * foo (struct pts *a, int b)
{
  return (struct pts *) bar (a, b);
}