shithub: scc

ref: de505b2650948c2f4ada5368eaf8a019cf1099bc
dir: /tests/libc/execute/0003-assert.c/

View raw version
#include <assert.h>
#include <signal.h>

int
main()
{
	int i;
	char c;

	printf("First assert\n");
	assert(sizeof(i) >= sizeof(c));

#define NDEBUG
#include <assert.h>

	printf("Second assert, that must fail\n");
	assert(sizeof(i) < sizeof(c));

	return 0;
}