shithub: scc

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

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

/*
output:
First assert
Second assert, that must fail
end:
*/

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;
}