]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/shr1.c
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / shr1.c
1 #include "ss.h"
2 #include <stdio.h>
3
4 typedef float f;
5
6 float sg = 5.5;
7 int sgi = 2;
8 static int sgs = 7;
9
10 int shr1(x)
11 int x;
12 {
13 f mumble;
14 int l;
15 l = 1;
16 {
17 int l;
18 l = 2;
19 }
20 mumble = 7.7;
21 sg = 6.6;
22 sgi++;
23 sgs = 8;
24 printf("address of sgs is 0x%x\n", &sgs);
25 return 2*x;
26 }
27
28 static int shr1_local(x)
29 int x;
30 {
31 return 2*x;
32 }
33
34 int structarg(x)
35 struct s x;
36 {
37 return x.a;
38 }
39
40 int pstructarg(x)
41 struct s *x;
42 {
43 return x->a;
44 }
45
46
47