Home | History | Annotate | Download | only in support.start.term
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 // UNSUPPORTED: c++98, c++03
     10 
     11 // test quick_exit and at_quick_exit
     12 
     13 #include <cstdlib>
     14 
     15 void f() {}
     16 
     17 int main()
     18 {
     19 #ifdef _LIBCPP_HAS_QUICK_EXIT
     20     std::at_quick_exit(f);
     21     std::quick_exit(0);
     22 #endif
     23 }
     24