blob: c10ac24835467b52f30316c4d6dc567be4abe890 [file] [log] [blame]
/* Performing a 64-bit division should not pull in the unwinder. */
/* { dg-do run { target { { ! *-*-linux* } && { ! *-*-uclinux* } } } } */
/* { dg-skip-if "load causes weak symbol resolution" { vxworks_kernel } } */
/* { dg-options "-O0" } */
#include <stdlib.h>
long long
foo (long long c, long long d)
{
return c/d;
}
long long x = 0;
long long y = 1;
extern int (*_Unwind_RaiseException) (void *) __attribute__((weak));
int main(void)
{
if (&_Unwind_RaiseException != NULL)
abort ();;
return foo (x, y);
}