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
10 // UNSUPPORTED: c++98, c++03, c++11, c++14
11 // <optional>
12
13 // struct nullopt_t{see below};
14 // inline constexpr nullopt_t nullopt(unspecified);
15
16 // [optional.nullopt]/2:
17 // Type nullopt_t shall not have a default constructor or an initializer-list
18 // constructor, and shall not be an aggregate.
19
20 #include <optional>
21
main()22 int main()
23 {
24 std::nullopt_t n = {};
25 }
26