aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/ret-thunk-20.c
blob: 1e9f9bd5a661c9083c837a9d4bd6846e9f020cc1 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile { target { lp64 } } } */
/* { dg-options "-O2 -mfunction-return=keep -mindirect-branch=keep -mcmodel=large" } */
/* { dg-additional-options "-fPIC" { target fpic } } */

__attribute__ ((function_return("thunk-extern")))
void
bar (void)
{ /* { dg-error "'-mfunction-return=thunk-extern' and '-mcmodel=large' are not compatible" } */
}