source: tests/exceptions/type-check.cfa @ 56c8b86

arm-ehjacob/cs343-translationnew-ast-unique-expr
Last change on this file since 56c8b86 was b2de2e0, checked in by Andrew Beach <ajbeach@…>, 20 months 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.