OSDN Git Service

PR tree-optimization/52019
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / trampoline-1.c
index dbbd850..37a582c 100644 (file)
@@ -2,12 +2,16 @@
 /* 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)
 {
@@ -42,9 +46,12 @@ void foo (void)
       abort();
   }
 }
+#endif
 
 int main (void)
 {
+#ifndef NO_TRAMPOLINES
   foo ();
+#endif
   return 0;
 }