x86: Disallow -mindirect-branch=/-mfunction-return= with -mcmodel=large
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / indirect-thunk-attr-10.c
blob3a2aeaddbc5c62f476739d100b45b4febe3ed835
1 /* { dg-do compile { target { lp64 } } } */
2 /* { dg-options "-O2 -mindirect-branch=keep -mfunction-return=keep -mcmodel=large" } */
3 /* { dg-additional-options "-fPIC" { target fpic } } */
5 __attribute__ ((indirect_branch("thunk-extern")))
6 void
7 bar (void)
8 { /* { dg-error "'-mindirect-branch=thunk-extern' and '-mcmodel=large' are not compatible" } */