Files
yugr-Implib/tests/exceptions/main.cpp
T
2020-06-11 10:45:45 +03:00

22 lines
344 B
C++

/*
* Copyright 2019 Yury Gribov
*
* The MIT License (MIT)
*
* Use of this source code is governed by MIT license that can be
* found in the LICENSE.txt file.
*/
#include <stdio.h>
#include "interposed.h"
int main() {
try {
foo(1, 2);
} catch (const err &e) {
printf("Caught exception: %d\n", e.cookie);
}
return 0;
}