1/*
2 * $FreeBSD$
3 */
4
5#include <sys/types.h>
6#include <sys/stdint.h>
7
8struct s1 {
9	int32_t		f1_int;
10	char		*f2_str;
11	short		f3_short;
12	uint64_t	f4_uint64;
13	intmax_t	f5_intmax;
14	void*		f6_ptr;
15};
16
17struct s2 {
18	char		f1_buf[30];
19	struct s1	*f2_s1;
20};
21
22struct s3 {
23	struct s1	f1_s1;
24	uint32_t	f2_int32;
25};
26
27int	func1(uint64_t a, uint64_t b);
28int	compat_func1(int a, int b);
29int	func2(int64_t a, uint64_t b);
30void	func3(struct s1 *s);
31void	func4(struct s1 s);
32int	func5(int a, void *b, struct s2 *s);
33int	func6(char a, struct s3 *s);
34
35int
36func1(uint64_t a, uint64_t b)
37{
38	return (a - b);
39}
40
41int
42compat_func1(int a, int b)
43{
44	return func1(a, b);
45}
46__sym_compat(func1, compat_func1, TEST_1.0);
47
48int
49func2(int64_t a, uint64_t b)
50{
51	return (a - b);
52}
53
54void
55func3(struct s1 *s)
56{
57}
58
59void
60func4(struct s1 s)
61{
62}
63
64int
65func5(int a, void *b, struct s2 *s)
66{
67	return (0);
68}
69
70int
71func6(char a, struct s3 *s)
72{
73	return (0);
74}
75