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

int main() {
  std::exception e;
  try {
    throw e;
  }
  catch (std::exception e) {
    printf("caught std::exception\n");
  }
  return 0;
}