Clarify "list" output when specified lines are ambiguous
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / shr1.c
CommitLineData
c906108c
SS
1#include "ss.h"
2#include <stdio.h>
3
4typedef float f;
5
6float sg = 5.5;
7int sgi = 2;
8static int sgs = 7;
9
085dd6e6 10int shr1(int x)
c906108c
SS
11{
12 f mumble;
13 int l;
14 l = 1;
15 {
16 int l;
17 l = 2;
18 }
19 mumble = 7.7;
20 sg = 6.6;
21 sgi++;
22 sgs = 8;
c2d494a0 23 printf("address of sgs is %p\n", &sgs);
c906108c
SS
24 return 2*x;
25}
26
085dd6e6 27static int shr1_local(int x)
c906108c
SS
28{
29 return 2*x;
30}
31
085dd6e6 32int structarg(struct s x)
c906108c
SS
33{
34 return x.a;
35}
36
085dd6e6 37int pstructarg(struct s *x)
c906108c
SS
38{
39 return x->a;
40}
41
42
43
This page took 2.059492 seconds and 4 git commands to generate.