1204076Spjd#include "ss.h"
2204076Spjd#include <stdio.h>
3204076Spjd
4204076Spjdtypedef float f;
5204076Spjd
6204076Spjdfloat sg = 5.5;
7204076Spjdint sgi = 2;
8204076Spjdstatic int sgs = 7;
9204076Spjd
10204076Spjd#ifdef PROTOTYPES
11204076Spjdint shr1(int x)
12204076Spjd#else
13204076Spjdint shr1(x)
14204076Spjdint x;
15204076Spjd#endif
16204076Spjd{
17204076Spjd  f mumble;
18204076Spjd  int l;
19204076Spjd  l = 1;
20204076Spjd  {
21204076Spjd    int l;
22204076Spjd    l = 2;
23204076Spjd  }
24204076Spjd  mumble = 7.7;
25204076Spjd  sg = 6.6;
26204076Spjd  sgi++;
27204076Spjd  sgs = 8;
28204076Spjd  printf("address of sgs is %p\n", &sgs);
29204076Spjd  return 2*x;
30204076Spjd}
31204076Spjd
32204076Spjd#ifdef PROTOTYPES
33204076Spjdstatic int shr1_local(int x)
34204076Spjd#else
35204076Spjdstatic int shr1_local(x)
36219620Strocinyint x;
37204076Spjd#endif
38204076Spjd{
39204076Spjd  return 2*x;
40204076Spjd}
41204076Spjd
42204076Spjd#ifdef PROTOTYPES
43204076Spjdint structarg(struct s x)
44204076Spjd#else
45204076Spjdint structarg(x)
46204076Spjdstruct s x;
47204076Spjd#endif
48204076Spjd{
49204076Spjd  return x.a;
50204076Spjd}
51204076Spjd
52204076Spjd#ifdef PROTOTYPES
53204076Spjdint pstructarg(struct s *x)
54204076Spjd#else
55204076Spjdint pstructarg(x)
56204076Spjdstruct s *x;
57204076Spjd#endif
58204076Spjd{
59204076Spjd  return x->a;
60204076Spjd}
61204076Spjd
62204076Spjd
63248291Smarck
64248291Smarck