test.lc 483 Bytes
Newer Older
1
typedef struct {
2
   int val;
3
4
} coord;

5
6
typedef int anInt;

7
typedef void avoid;
8
sample  avoid doavoid;
9

10
11
sample  struct {
   int x;
12
13
14
  sample reference;
} intAndRef;

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
typedef struct {
  coord x;
  coord y;
} point;

typedef struct {
  point start;
  point end;
} line;

typedef struct {
  int a;
  int b;
  boolean c;
} foo;

sample struct {
  line l1;
  line l2;
  foo  f;
} twoLines;
36
37
38
39
40

sample struct {
  int a;
  int b;
} twoInts;
41
42
43

sample anInt theFirstInt;
sample anInt theSecondInt;