aboutsummaryrefslogtreecommitdiff
path: root/gfsm/gfsm/src/libgfsm/tests/ctest.c
blob: 78d9002bdf7ae24c2f298b174b10bb48fbcf2698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

typedef struct testme_s {
  int i : 1;
  int j : 1;
  int k : 1;
} testme_t;

int main (void) {
  int x,y,z;
  float f = +inf;
  printf("sizeof(testme_t)=%u\n", sizeof(testme_t));

  z = (x=42,y=24,17);
  printf ("z = (x=42,y=24) = %d\n", z);
  printf("f = %g\n", f);
  return 0;
}