Changeset 866cad3 for doc/theses/andrew_beach_MMath/code/cross-catch.cfa
- Timestamp:
- Jul 24, 2021, 4:29:47 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 70df5f3, 98233b3
- Parents:
- a5a6a1a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/cross-catch.cfa
ra5a6a1a8 r866cad3 11 11 int main(int argc, char * argv[]) { 12 12 unsigned int times = 1; 13 bool should_throw = false;13 volatile bool should_throw = false; 14 14 if (1 < argc) { 15 15 times = strtol(argv[1], 0p, 10); … … 19 19 for (unsigned int count = 0 ; count < times ; ++count) { 20 20 try { 21 asm volatile ("# try block" : "=rm" (should_throw));21 asm volatile ("# try block"); 22 22 if (should_throw) { 23 23 throw (not_raised_exception){¬_vt};
Note: See TracChangeset
for help on using the changeset viewer.