2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / smod-1.c
blob8ff60de136281853c97b465036993d561ff31098
1 /* PR middle-end/18045 */
2 /* Contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */
4 /* { dg-do run } */
5 /* { dg-options "-std=c99" } */
6 /* { dg-options "-std=c99 -mtune=i486" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
8 #include <limits.h>
10 extern void abort(void);
12 long long smod16(long long x)
14 return x % 16;
17 int main(void)
19 #if LLONG_MAX > 2147483647L
20 if (smod16 (0xFFFFFFFF) != 0xF)
21 abort ();
22 #endif
24 return 0;