File:  [CSRG BSD Unix] / 43BSDReno / contrib / emacs-18.55 / gdb / testregs.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

typedef struct aa { int b;} *hack;

static int
foo (argc)
{
  register int a = 0x1234;
  register int b = 0x56788765;
  register char *x = (char *) 0xabababab;
  register char *y = (char *) 0xcdcdcdcd;
  register double d = 1.582;
  int loser;
  printf ("Address of loser is 0x%x.\n", &loser);
  printf ("Address of argc is 0x%x.\n", &argc);
  abort ();
}

main (argc)
{
  foo (argc);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.