1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // UNSUPPORTED: c++03
9 
10 // test quick_exit and at_quick_exit
11 
12 #include <cstdlib>
13 
14 #include "test_macros.h"
15 
16 void f() {}
17 
18 int main(int, char**)
19 {
20 #ifdef TEST_HAS_QUICK_EXIT
21     std::at_quick_exit(f);
22     std::quick_exit(0);
23 #endif
24 
25   return 0;
26 }
27