//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11, c++14 // // template // class optional // { // public: // typedef T value_type; // ... #include #include using std::optional; template void test() { static_assert(std::is_same::value, ""); } int main() { test, int>(); test, const int>(); test, double>(); test, const double>(); }