xref: /titanic_44/usr/src/lib/libast/common/features/errno (revision e71ca95ca6de23d33b54cb55cefdef30bc7c969b)
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