[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / language.support / support.start.term / quick_exit_check2.fail.cpp
blob28929b1aed346b1d2088e63c2cfcaba275165d27
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++98, c++03
10 // test that referencing quick_exit when _LIBCPP_HAS_QUICK_EXIT is not defined
11 // results in a compile error.
13 #include <cstdlib>
15 void f() {}
17 int main(int, char**)
19 #ifndef _LIBCPP_HAS_QUICK_EXIT
20 std::quick_exit(0);
21 #else
22 #error
23 #endif
25 return 0;