source: tests/exceptions/type-check.cfa @ cdacb73

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since cdacb73 was b2de2e0, checked in by Andrew Beach <ajbeach@…>, 4 years ago

Improved the check of the catch[Resume] exception declaration.

  • Property mode set to 100644
File size: 258 bytes
Line 
1// Check that the exception type check works.
2
3#include <exception.hfa>
4
5TRIVIAL_EXCEPTION(truth);
6
7int main(int argc, char * argv[]) {
8        try {} catch (int e) {}
9        try {} catch (truth & e) {}
10        try {} catchResume (int e) {}
11        try {} catchResume (truth & e) {}
12}
Note: See TracBrowser for help on using the repository browser.