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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [testsuite/] [gdb.base/] [sizeof.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#include <stdio.h>
2
 
3
int
4
main ()
5
{
6
  printf ("sizeof (char) == %d\n", sizeof (char));
7
  printf ("sizeof (short) == %d\n", sizeof (short));
8
  printf ("sizeof (int) == %d\n", sizeof (int));
9
  printf ("sizeof (long) == %d\n", sizeof (long));
10
  printf ("sizeof (long long) == %d\n", sizeof (long long));
11
 
12
  printf ("sizeof (void *) == %d\n", sizeof (void*));
13
  printf ("sizeof (void (*)(void)) == %d\n", sizeof (void (*)(void)));
14
 
15
  printf ("sizeof (float) == %d\n", sizeof (float));
16
  printf ("sizeof (double) == %d\n", sizeof (double));
17
  printf ("sizeof (long double) == %d\n", sizeof (long double));
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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