aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/ret-thunk-6.c
blob: 10ad40b9c262c9d9e8ce9501bf582c66d8b09c9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -mfunction-return=keep" } */

__attribute__ ((function_return("thunk-inline")))
void
foo (void)
{
}

/* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
/* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
/* { dg-final { scan-assembler {\tlfence} } } */
/* { dg-final { scan-assembler-not "jmp\[ \t\]*__x86.return_thunk" } } */