summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/dm.c
blob: 67c60ee9820305958e8ec320cc807b6a8ff60ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}