[mlir][acc] Introduce MappableType interface (#122146)
[llvm-project.git] / libcxx / test / std / utilities / optional / optional.bad_optional_access / default.pass.cpp
blob45e6e642037775df3ed351cc9bbda10fdf16dfef
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14
11 // <optional>
13 // class bad_optional_access is default constructible
15 #include <optional>
16 #include <type_traits>
18 #include "test_macros.h"
20 int main(int, char**)
22 using std::bad_optional_access;
23 bad_optional_access ex;
25 return 0;