8sa1-gcc/gcc/testsuite/gcc.c-torture/unsorted/dm.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

25 lines
236 B
C

struct dm
{
unsigned q;
unsigned r;
};
struct dm
dm (a, b)
unsigned a, b;
{
struct dm qr;
qr.q = a / b;
qr.r = a % b;
return qr;
}
main ()
{
struct dm qr;
qr = dm (100, 30);
printf ("%u, %u\n", qr.q, qr.r);
}