OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [dm.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
struct dm
2
{
3
  unsigned q;
4
  unsigned r;
5
};
6
 
7
struct dm
8
dm (a, b)
9
     unsigned a, b;
10
{
11
  struct dm qr;
12
 
13
  qr.q = a / b;
14
  qr.r = a % b;
15
  return qr;
16
}
17
 
18
main ()
19
{
20
  struct dm qr;
21
 
22
  qr = dm (100, 30);
23
  printf ("%u, %u\n", qr.q, qr.r);
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.