aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-local.c
blob: 0c3103007cfc99166affb20e7dfb8a4924382257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -funit-at-a-time" } */
/* { dg-final { scan-assembler "magic\[^\\n\]*eax" } } */

/* Verify that local calling convention is used.  */
static t(int) __attribute__ ((noinline));
m()
{
	t(1);
}
static t(int a)
{
	asm("magic %0"::"g"(a));
}