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 that referencing quick_exit when _LIBCPP_HAS_QUICK_EXIT is not defined 12 // results in a compile error. 13 14 #include <cstdlib> 15 16 void f() {} 17 18 int main() 19 { 20 #ifndef _LIBCPP_HAS_QUICK_EXIT 21 std::quick_exit(0); 22 #else 23 #error 24 #endif 25 } 26