view usr/src/common/saveargs/tests/functional/basic.c @ 13864:2737b2ab1b9e

3169 userland amd64 code should save arguments 3180 mdb should handle push-based argument save area 3192 mdb save-args matching should accept more agressive insn scheduling 3193 mdb save-args matching should only consider insns which have executed Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
author Richard Lowe <richlowe@richlowe.net>
date Fri, 07 Sep 2012 23:51:24 -0400
parents
children
line wrap: on
line source

/*
 * This file and its contents are supplied under the terms of the
 * Common Development and Distribution License ("CDDL"), version 1.0.
 * You may only use this file in accordance with the terms of version
 * 1.0 of the CDDL.
 *
 * A full copy of the text of the CDDL should have accompanied this
 * source.  A copy of the CDDL is also available via the Internet at
 * http://www.illumos.org/license/CDDL.
 */

/*
 * Copyright 2012, Richard Lowe.
 */

#include <stdio.h>
#include <unistd.h>

int
test(long a, long b, long c, long d)
{
	printf("%ld %ld %ld %ld\n", a, b, c, d);
	for (;;)
		sleep(60);
}

int
main(int argc, char **argv)
{
	test(1, 2, 3, 4);
	return (0);
}