aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_exceptions_std.in
blob: 3b9f874b23b030086903583be408be2747f0e010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <exception>

int main() {
  std::exception e;
  try {
    throw e;
  }
  catch (std::exception e) {
    printf("what? %s\n", e.what());
    printf("caught std::exception\n");
  }
  return 0;
}