mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Initial creation of sourceware repository
This commit is contained in:
38
gdb/testsuite/gdb.base/structs2.c
Normal file
38
gdb/testsuite/gdb.base/structs2.c
Normal file
@ -0,0 +1,38 @@
|
||||
/* pr 13536 */
|
||||
|
||||
static void param_reg (register char pr_char,
|
||||
register unsigned char pr_uchar,
|
||||
register short pr_short,
|
||||
register unsigned short pr_ushort);
|
||||
|
||||
int bkpt;
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifdef usestubs
|
||||
set_debug_traps ();
|
||||
breakpoint ();
|
||||
#endif
|
||||
|
||||
bkpt = 0;
|
||||
param_reg (120, 130, 32000, 33000);
|
||||
param_reg (130, 120, 33000, 32000);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dummy () {}
|
||||
|
||||
static void
|
||||
param_reg(register 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 ();
|
||||
}
|
Reference in New Issue
Block a user