* gdb.base/help.exp: Replace most of docstring for "define" with ".*".
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / scope1.c
CommitLineData
ef44eed1
SS
1static int filelocal = 2; /* In Data section */
2static int filelocal_bss; /* In BSS section */
3#ifndef __STDC__
4#define const /**/
5#endif
6static const int filelocal_ro = 202; /* In Read-Only Data section */
7
8foo ()
9{
10 static int funclocal = 3; /* In Data section */
11 static int funclocal_bss; /* In BSS section */
12 static const int funclocal_ro = 203; /* RO Data */
13 static const int funclocal_ro_bss; /* RO Data */
14
15 funclocal_bss = 103;
16 bar ();
17}
18
19bar ()
20{
21 static int funclocal = 4; /* In data section */
22 static int funclocal_bss; /* In BSS section */
23 funclocal_bss = 104;
24}
25
26init1 ()
27{
28 filelocal_bss = 102;
29}
30
31/* On some systems, such as AIX, unreferenced variables are deleted
32 from the executable. */
33usestatics1 ()
34{
35 useit1 (filelocal);
36 useit1 (filelocal_bss);
37 useit1 (filelocal_ro);
38}
39
40useit1 (val)
41{
42 static int usedval;
43
44 usedval = val;
45}
This page took 0.049817 seconds and 4 git commands to generate.