tst.ufuncsort.c revision 302408
164123Skato/*
264123Skato * CDDL HEADER START
364123Skato *
464123Skato * The contents of this file are subject to the terms of the
564123Skato * Common Development and Distribution License (the "License").
664123Skato * You may not use this file except in compliance with the License.
764123Skato *
864123Skato * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
964123Skato * or http://www.opensolaris.org/os/licensing.
1064123Skato * See the License for the specific language governing permissions
1164123Skato * and limitations under the License.
1264123Skato *
1364123Skato * When distributing Covered Code, include this CDDL HEADER in each
1464123Skato * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1564123Skato * If applicable, add the following below this CDDL HEADER, with the
1664123Skato * fields enclosed by brackets "[]" replaced with your own identifying
1764123Skato * information: Portions Copyright [yyyy] [name of copyright owner]
1864123Skato *
1964123Skato * CDDL HEADER END
2064123Skato */
2164123Skato
2264123Skato/*
2364123Skato * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2464123Skato * Use is subject to license terms.
2564123Skato */
2664123Skato
2764123Skato#pragma ident	"%Z%%M%	%I%	%E% SMI"
2864123Skato
2964123Skatotypedef void f(int x);
3064123Skato
3164123Skatostatic void
3264123Skatof_a(int i)
3364123Skato{
3464123Skato}
3564123Skato
3664123Skatostatic void
3764123Skatof_b(int i)
3864123Skato{
3964123Skato}
4064123Skato
4164123Skatostatic void
4264123Skatof_c(int i)
4364123Skato{
4464123Skato}
4564123Skato
4664123Skatostatic void
4764123Skatof_d(int i)
4864123Skato{
4964123Skato}
5064123Skato
5164123Skatostatic void
5264123Skatof_e(int i)
5364123Skato{
5464123Skato}
5564123Skato
5664123Skatostatic void
5764123SkatofN(f func, int i)
5864123Skato{
5964123Skato	func(i);
6064123Skato}
6164123Skato
6264123Skatoint
6364123Skatomain()
6464183Skato{
6564123Skato	fN(f_a, 1);
6664183Skato	fN(f_b, 2);
6764183Skato	fN(f_c, 3);
6864123Skato	fN(f_d, 4);
6964123Skato	fN(f_e, 5);
7064123Skato	fN(f_a, 11);
7164123Skato	fN(f_c, 13);
7264183Skato	fN(f_d, 14);
7364123Skato	fN(f_a, 101);
7464123Skato	fN(f_c, 103);
7564183Skato	fN(f_c, 1003);
7664183Skato
7764123Skato	return (0);
7864123Skato}
7964123Skato