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