aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr65693.c
blob: bc380e483ffcf47204bc3e7ac58c7ce51d582cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/65693 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int a;

void
foo (int (*fn) (int, int, int), unsigned int b)
{
  unsigned long *c = (unsigned long *) __builtin_alloca (b);
  a = *c;
  register int d asm ("edx") = fn (0, 0, d);
}