Changeset 2853d6f for tests/quasiKeyword.cfa
- Timestamp:
- Jan 2, 2025, 7:00:01 PM (3 weeks ago)
- Branches:
- master
- Children:
- 656c8ac
- Parents:
- a6b48f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/quasiKeyword.cfa
ra6b48f6 r2853d6f 13 13 14 14 exception E {}; 15 vtable(E) E_vt; 15 16 16 void catch( int i ) {}17 void recover( int i ) {}18 void catchResume( int i ) { }19 void fixup( int i ) {}20 void finally( int i ) {}17 void catch( int i ) { (void) i; } 18 void recover( int i ) { (void) i; } 19 void catchResume( int i ) { (void) i; } 20 void fixup( int i ) { (void) i; } 21 void finally( int i ) { (void) i; } 21 22 22 int main( int argc, char const *argv[]) {23 int main() { 23 24 int catch, recover, catchResume, fixup, finally; 24 25 try { … … 33 34 finally = 3; 34 35 finally( finally ); 35 throw (E){ };36 report (E){ };37 throwResume (E){ };36 throw (E){ & E_vt }; 37 report (E){ & E_vt }; 38 throwResume (E){ & E_vt }; 38 39 } catch ( E * ) { 39 40 } recover ( E * ) { // same as catch … … 50 51 else catch = 3; 51 52 52 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 53 printf("done\n"); 53 54 }
Note: See TracChangeset
for help on using the changeset viewer.