Debian Codegraph @

gcc/testsuite/gcc.dg/struct-ret-libc.c

raw
1 /* Test evolved from source from Simona Perri <[email protected]>
2 and Gerald Pfeifer<[email protected]>.
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 }