ref: fe2604df482dc30510d4561efb92b8bff41cf86f
dir: /tests/libc/execute/0002-assert.c/
#include <assert.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> /* output: First assert Second assert, that must fail end: */ void handler(int dummy) { _Exit(0); } int main() { int i; char c; assert(signal(SIGABRT, handler) != SIG_ERR); printf("First assert\n"); assert(sizeof(i) >= sizeof(c)); printf("Second assert, that must fail\n"); assert(sizeof(i) < sizeof(c)); return 0; }