Home | History | Annotate | Download | only in support.start.term
      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 // UNSUPPORTED: c++98, c++03
     11 
     12 // test that referencing at_quick_exit when _LIBCPP_HAS_QUICK_EXIT is not defined
     13 // results in a compile error.
     14 
     15 #include <cstdlib>
     16 
     17 void f() {}
     18 
     19 int main()
     20 {
     21 #ifndef _LIBCPP_HAS_QUICK_EXIT
     22     std::at_quick_exit(f);
     23 #else
     24 #error
     25 #endif
     26 }
     27