//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // class optional // { // public: // typedef T value_type; // ... #include #include #if _LIBCPP_STD_VER > 11 using std::experimental::optional; template void test() { static_assert(std::is_same::value, ""); } #endif // _LIBCPP_STD_VER > 11 int main() { #if _LIBCPP_STD_VER > 11 test, int>(); test, const int>(); test, double>(); test, const double>(); #endif // _LIBCPP_STD_VER > 11 }