PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / div64-unwinding.c
blob7f112eeab9f57f9687cad87cd6a031726f1d9728
1 /* Performing a 64-bit division should not pull in the unwinder. */
3 /* { dg-do run { target { ! *-*-linux* } } } */
4 /* { dg-options "-O0" } */
6 #include <stdlib.h>
8 long long
9 foo (long long c, long long d)
11 return c/d;
14 long long x = 0;
15 long long y = 1;
17 extern int (*_Unwind_RaiseException) (void *) __attribute__((weak));
19 int main(void)
21 if (&_Unwind_RaiseException != NULL)
22 abort ();;
23 return foo (x, y);