2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / struct-ret-libc.c
blob723e1cd029bc51cb8f5bad57409f04d7e3b9f5a0
1 /* Test evolved from source from Simona Perri <perri@mat.unical.it>
2 and Gerald Pfeifer<pfeifer@dbai.tuwien.ac.at>.
4 Copyright (C) 2003 Free Software Foundation */
6 /* { dg-do run } */
8 #include <stdlib.h>
10 int main ()
12 div_t d = div (20, 5);
13 if ((d.quot != 4) || (d.rem))
14 abort ();
15 exit (0);