brintos

brintos / llvm-project-archived public Read only

0
0
Text · 650 B · 45e6e64 Raw
27 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++1410 11// <optional>12 13// class bad_optional_access is default constructible14 15#include <optional>16#include <type_traits>17 18#include "test_macros.h"19 20int main(int, char**)21{22    using std::bad_optional_access;23    bad_optional_access ex;24 25  return 0;26}27