1 /* Test evolved from source from Simona Perri <perri@mat.unical.it>
2 and Gerald Pfeifer<pfeifer@dbai.tuwien.ac.at>.
3
4 Copyright (C) 2003 Free Software Foundation */
5
6 /* { dg-do run } */
7
8 #include <stdlib.h>
9
10 int main ()
11 {
12 div_t d = div (20, 5);
13 if ((d.quot != 4) || (d.rem))
14 abort ();
15 exit (0);
16 }