default.pass.cpp 594 B

1234567891011121314151617181920212223
  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, c++11, c++14
  10. // <optional>
  11. // class bad_optional_access is default constructible
  12. #include <optional>
  13. #include <type_traits>
  14. int main()
  15. {
  16. using std::bad_optional_access;
  17. bad_optional_access ex;
  18. }