1e1f2d32ngie/*	$NetBSD: h_ifunc.c,v 1.1 2014/08/25 20:40:53 joerg Exp $	*/
2e1f2d32ngie
3e1f2d32ngie/*-
4e1f2d32ngie * Copyright (c) 2014 The NetBSD Foundation, Inc.
5e1f2d32ngie * All rights reserved.
6e1f2d32ngie *
7e1f2d32ngie * This code is derived from software contributed to The NetBSD Foundation
8e1f2d32ngie * by Joerg Sonnenberger.
9e1f2d32ngie *
10e1f2d32ngie * Redistribution and use in source and binary forms, with or without
11e1f2d32ngie * modification, are permitted provided that the following conditions
12e1f2d32ngie * are met:
13e1f2d32ngie * 1. Redistributions of source code must retain the above copyright
14e1f2d32ngie *    notice, this list of conditions and the following disclaimer.
15e1f2d32ngie * 2. Redistributions in binary form must reproduce the above copyright
16e1f2d32ngie *    notice, this list of conditions and the following disclaimer in the
17e1f2d32ngie *    documentation and/or other materials provided with the distribution.
18e1f2d32ngie *
19e1f2d32ngie * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20e1f2d32ngie * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21e1f2d32ngie * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22e1f2d32ngie * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23e1f2d32ngie * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24e1f2d32ngie * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25e1f2d32ngie * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26e1f2d32ngie * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27e1f2d32ngie * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28e1f2d32ngie * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29e1f2d32ngie * POSSIBILITY OF SUCH DAMAGE.
30e1f2d32ngie */
31e1f2d32ngie
32e1f2d32ngie#include <stdlib.h>
33e1f2d32ngie
34e1f2d32ngieextern int ifunc(void);
35e1f2d32ngie
36e1f2d32ngieint
37e1f2d32ngiemain(int argc, char **argv)
38e1f2d32ngie{
39e1f2d32ngie
40e1f2d32ngie	if (argc != 2)
41e1f2d32ngie		return 1;
42e1f2d32ngie	return ifunc() != atoi(argv[1]);
43e1f2d32ngie}
44