23 lines
449 B
C
23 lines
449 B
C
#include "akerror.h"
|
|
#include <stdio.h>
|
|
|
|
akerr_ErrorContext AKERR_NOIGNORE *improper_closure(void)
|
|
{
|
|
PREPARE_ERROR(errctx);
|
|
ATTEMPT {
|
|
} CLEANUP {
|
|
} PROCESS(errctx) {
|
|
} FINISH(errctx, true);
|
|
fprintf(stderr, "Improperly returning from improper_closure\n");
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
PREPARE_ERROR(errctx);
|
|
ATTEMPT {
|
|
CATCH(errctx, improper_closure());
|
|
} CLEANUP {
|
|
} PROCESS(errctx) {
|
|
} FINISH_NORETURN(errctx);
|
|
}
|