[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / language.support / support.start.term / at_quick_exit.compile.fail.cpp
blob79051fb5167d4a0e1a68d23dd910566a4bcabd77
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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // test that referencing at_quick_exit when TEST_HAS_QUICK_EXIT is not defined
12 // results in a compile error.
14 #include <cstdlib>
16 #include "test_macros.h"
18 void f() { }
20 int main(int, char**) {
21 #if !defined(TEST_HAS_QUICK_EXIT)
22 std::at_quick_exit(f);
23 #else
24 # error
25 #endif
26 return 0;