// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // exception-nothreads.cfa -- // // Author : Andrew Beach // Created On : Thr 13 16:12:00 2020 // Last Modified By : Andrew Beach // Last Modified On : Thr 13 16:49:00 2020 // Update Count : 0 // #include exception ping {}; vtable(ping) ping_vt; int main(void) { try { throwResume (ping){&ping_vt}; } catchResume (ping *) { printf("%s threads\n", threading_enabled() ? "with" : "no"); } return 0; } // Local Variables: // // tab-width: 4 // // compile-command: "cfa nothreads.cfa" // // End: //