/* Origin: Waldek Hebisch <hebisch@math.uni.wroc.pl> */
/* { dg-do run } */
+/* { dg-require-effective-target trampolines } */
/* { dg-options "-O2" } */
+#ifndef NO_TRAMPOLINES
+
/* This used to fail on various versions of Solaris 2 because the
trampoline couldn't be made executable. */
extern void abort(void);
+extern double fabs(double);
void foo (void)
{
abort();
}
}
+#endif
int main (void)
{
+#ifndef NO_TRAMPOLINES
foo ();
+#endif
return 0;
}