// Test that __attribute__((cleanup(...))) is working. #include #include "except-mac.hfa" TRIVIAL_EXCEPTION(myth) int main (int argc, char * argv[]) { try { try { printf("throw ["); THROW(&(myth){}); } finally { printf("] unwind <"); } } catch (myth * error) { printf("> catch\n"); } }