gcc/gcc/testsuite/gcc.target/i386/ret-thunk-17.c

8 lines
241 B
C

/* { dg-do compile { target { lp64 } } } */
/* { dg-options "-O2 -mfunction-return=thunk -mindirect-branch=keep -mcmodel=large" } */
void
bar (void)
{ /* { dg-error "'-mfunction-return=thunk' and '-mcmodel=large' are not compatible" } */
}