File:  [CSRG BSD Unix] / 41BSD / cmd / sdb / TESTS / t.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD41
BSD 4.1

struct {
	char cc;
	int aa;
} s1, s2, s3[2];

main(argc,argv,envp)
char **argv, **envp; {
	s1.cc = 'a';
	s2.cc = 'b';
	s3[0].cc = 'c';
	s3[1].cc = 'd';
	
	s1.aa = 22;
	s2.aa = 33;
	s3[0].aa = 44;
	
	sub(s1.cc);
	
	abort();
}

sub(c)
char c;
{
	register char d;
	
	d = c;
	inner(&c);
}

inner(s)
char *s; {
	char c;
	
	c = *s;
	core(s);
}

core(s)
register char *s; {
	char *p;
	char c;

	p = s;
	c = *p;
}


unix.superglobalmegacorp.com

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