summaryrefslogtreecommitdiff
path: root/src/lib/libast/features/errno
blob: 271fe6d17476f497307171ccbcc89077b0b14246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
tst	dat_sys_nerr note{ sys_nerr in default libs }end compile{
	extern int sys_nerr;
	int f()
	{
		return sys_nerr > 0;
	}
}end

tst	def_errno_sys_nerr note{ sys_nerr declared in errno.h }end compile{
	#include <errno.h>
	int f()
	{
		return sys_nerr > 0;
	}
}end

tst	dat_sys_errlist note{ sys_errlist in default libs }end compile{
	extern char* sys_errlist[];
	int f()
	{
		return *sys_errlist[1] != 0;
	}
}end

tst	def_errno_sys_errlist note{ sys_errlist declared in errno.h }end compile{
	#include <errno.h>
	int f()
	{
		return *sys_errlist[1] != 0;
	}
}end