terminate_handler.pass.cpp 453 B

12345678910111213141516171819
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // test terminate_handler
  10. #include <exception>
  11. void f() {}
  12. int main()
  13. {
  14. std::terminate_handler p = f;
  15. }