aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/structs2.c
blob: 7c8be035221d12446b36060722a898071f64452e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* pr 13536 */

static void param_reg (register signed char pr_char,
		       register unsigned char pr_uchar,
		       register short pr_short,
		       register unsigned short pr_ushort);

int bkpt;

int
main ()
{

  bkpt = 0;
  param_reg (120, 130, 32000, 33000);
  param_reg (130, 120, 33000, 32000);

  return 0;
}

static void dummy () {}

static void
param_reg(register signed char pr_char,
	  register unsigned char pr_uchar,
	  register short pr_short,
	  register unsigned short pr_ushort)
{
  bkpt = 1;
  dummy ();
  pr_char = 1;
  pr_uchar = pr_short = pr_ushort = 1;
  dummy ();
}