1 /* Performing a 64-bit division should not pull in the unwinder. */
2
3 /* { dg-do run { target { { ! *-*-linux* } && { ! *-*-uclinux* } } } } */
4 /* { dg-skip-if "load causes weak symbol resolution" { vxworks_kernel } } */
5 /* { dg-options "-O0" } */
6
7 #include <stdlib.h>
8
9 long long
10 foo (long long c, long long d)
11 {
12 return c/d;
13 }
14
15 long long x = 0;
16 long long y = 1;
17
18 extern int (*_Unwind_RaiseException) (void *) __attribute__((weak));
19
20 int main(void)
21 {
22 if (&_Unwind_RaiseException != NULL)
23 abort ();;
24 return foo (x, y);
25 }