x86: Disallow -mindirect-branch=/-mfunction-return= with -mcmodel=large
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ret-thunk-19.c
blob772617f401023f121dd17354b90c60e2be560f8f
1 /* { dg-do compile { target { lp64 } } } */
2 /* { dg-options "-O2 -mfunction-return=keep -mindirect-branch=keep -mcmodel=large" } */
4 __attribute__ ((function_return("thunk")))
5 void
6 bar (void)
7 { /* { dg-error "'-mfunction-return=thunk' and '-mcmodel=large' are not compatible" } */