extern "C" int ;
// A wrapper for the C++ `main` function that catches exceptions.
//
// This is needed because we have asked the `Fatal` type to throw instead of
// exit, for use as a library. But for use as a `bin` we still need to handle
// those exceptions in a similar way to the "real" `wasm-opt` bin.
//
// Since the bin does not use `cxx` it doesn't get baked-in exception handling,
// so we do that here, and the bin calls this main function.
//
// This design is also influenced by the need to maintain binary compatibility
// between `wasm-opt` crate 0.110.0 and 0.110.1. We might otherwise use `cxx`
// for the exception handling.
extern "C" int