xref: /titanic_41/usr/src/lib/libast/common/features/errno (revision 0cd13cbfb4270b840b4bd22ec5f673b2b6a2c02b)
1tst	dat_sys_nerr note{ sys_nerr in default libs }end compile{
2	extern int sys_nerr;
3	int f()
4	{
5		return sys_nerr > 0;
6	}
7}end
8
9tst	def_errno_sys_nerr note{ sys_nerr declared in errno.h }end compile{
10	#include <errno.h>
11	int f()
12	{
13		return sys_nerr > 0;
14	}
15}end
16
17tst	dat_sys_errlist note{ sys_errlist in default libs }end compile{
18	extern char* sys_errlist[];
19	int f()
20	{
21		return *sys_errlist[1] != 0;
22	}
23}end
24
25tst	def_errno_sys_errlist note{ sys_errlist declared in errno.h }end compile{
26	#include <errno.h>
27	int f()
28	{
29		return *sys_errlist[1] != 0;
30	}
31}end
32