]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/nodebug.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / nodebug.c
CommitLineData
ef44eed1
SS
1/* Test that things still (sort of) work when compiled without -g. */
2
3int dataglobal = 3; /* Should go in global data */
4static int datalocal = 4; /* Should go in local data */
5int bssglobal; /* Should go in global bss */
6static int bsslocal; /* Should go in local bss */
7
8int
9inner (x)
10 int x;
11{
12 return 2 * x;
13}
14
15static int
16middle (x)
17 int x;
18{
19 return 2 * inner (x);
20}
21
22int
23top (x)
24 int x;
25{
26 return 2 * middle (x);
27}
28
29int
30main (argc, argv)
31 int argc;
32 char **argv;
33{
34 return top (argc);
35}