// // Cforall Version 1.0.0 Copyright (C) 2021 University of Waterloo // // quasiKeyword.cfa -- test that quasi-keywords can be used for variable and functions names, as well as keywords in // control structures. // // Author : Peter A. Buhr // Created On : Wed Feb 17 10:33:49 2021 // Last Modified By : Peter A. Buhr // Last Modified On : Sun Feb 21 15:52:04 2021 // Update Count : 7 // #include TRIVIAL_EXCEPTION( E ); void catch( int i ) {} void recover( int i ) {} void catchResume( int i ) {} void fixup( int i ) {} void finally( int i ) {} int main(int argc, char const *argv[]) { int catch, recover, catchResume, fixup, finally; try { catch = 3; catch( catch ); recover = 3; recover( recover ); catchResume = 3; catchResume( catchResume ); fixup = 3; fixup( fixup ); finally = 3; finally( finally ); throw (E){}; report (E){}; throwResume (E){}; } catch ( E * ) { } recover ( E * ) { // same as catch } catchResume ( E * ) { } fixup ( E * ) { // same as catchResume } finally { } if ( 3 ) try { } fixup ( E * ) { } finally { } else catch = 3; #pragma message( "Compiled" ) // force non-empty .expect file }