Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.base / scope1.c
blob8c3252249930f766a459dc2601abc9a4846265f4
1 static int filelocal = 2; /* In Data section */
2 static int filelocal_bss; /* In BSS section */
3 #ifndef __STDC__
4 #define const /**/
5 #endif
6 static const int filelocal_ro = 202; /* In Read-Only Data section */
8 void foo ()
11 void bar ();
13 static int funclocal = 3; /* In Data section */
14 static int funclocal_bss; /* In BSS section */
15 static const int funclocal_ro = 203; /* RO Data */
16 static const int funclocal_ro_bss; /* RO Data */
18 funclocal_bss = 103;
19 bar ();
22 void bar ()
24 static int funclocal = 4; /* In data section */
25 static int funclocal_bss; /* In BSS section */
26 funclocal_bss = 104;
29 void init1 ()
31 filelocal_bss = 102;
34 /* On some systems, such as AIX, unreferenced variables are deleted
35 from the executable. */
36 void usestatics1 ()
38 void useit1 (int val);
40 useit1 (filelocal);
41 useit1 (filelocal_bss);
42 useit1 (filelocal_ro);
45 #ifdef PROTOTYPES
46 void useit1 (int val)
47 #else
48 void useit1 (val) int val;
49 #endif
51 static int usedval;
53 usedval = val;