Add a test case for skip with inlined functions
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / shmain.c
CommitLineData
c906108c
SS
1/* A test */
2
3#include "ss.h"
4#include <stdio.h>
5
dedad4e3
PA
6#include "../lib/unbuffer_output.c"
7
085dd6e6
JM
8extern int structarg(struct s);
9extern int pstructarg(struct s*);
10extern int shr1(int);
11extern int shr2(int);
c906108c
SS
12extern float sg;
13
14int eglob;
15
16struct {
17 int a;
18 int b;
19} s;
20
21int g;
22
085dd6e6 23int local_structarg(struct s x)
c906108c
SS
24{
25 return x.b;
26}
27
085dd6e6 28int mainshr1(int g)
085dd6e6
JM
29{
30 return 2*g;
31}
32
33int main()
c906108c
SS
34{
35 struct s y;
dedad4e3
PA
36
37 gdb_unbuffer_output ();
38
c906108c
SS
39 g = 1;
40 g = shr1(g);
41 g = shr2(g);
42 g = mainshr1(g);
43 sg = 1.1;
c906108c
SS
44 y.a = 3;
45 y.b = 4;
46 g = local_structarg(y);
47 g = structarg(y);
48 g = pstructarg(&y);
085dd6e6 49 return 0;
c906108c 50}
This page took 2.185287 seconds and 4 git commands to generate.