#include <stdio.h>
+#define FINALLY_TOLERATE_BUG_CAPTURE_COPIES 1
#include "finally.h"
#include "finally-test.h"
return (3);
}
+#ifndef FINALLY_BUG_CAPTURE_COPIES
static int test_capture(void)
{
int n = -1; FINALLY({ STEP(n); });
STEP(0);
n = 1; return (2);
}
+#endif
static int test_internal_block(void)
{
RUNTEST(softball);
RUNTEST(ordering);
RUNTEST(local_xfer);
+#ifndef FINALLY_BUG_CAPTURE_COPIES
RUNTEST(capture);
+#else
+ SKIPTEST(capture, "selected flavour captures copies");
+#endif
RUNTEST(internal_block);
#if defined(HAVE_FEXCEPTIONS)
RUNTEST(try_catch);