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
9 // UNSUPPORTED: c++03
10
11 // test that referencing quick_exit when TEST_HAS_QUICK_EXIT is not defined
12 // results in a compile error.
13
14 #include <cstdlib>
15
16 #include "test_macros.h"
17
main(int,char **)18 int main(int, char**) {
19 #if !defined(TEST_HAS_QUICK_EXIT)
20 std::quick_exit(0);
21 #else
22 # error
23 #endif
24 return 0;
25 }
26