mirror of
https://github.com/boostorg/optional.git
synced 2025-07-14 12:56:35 +02:00
Add test/cmake_install_test, test/cmake_subdir_test
This commit is contained in:
13
test/cmake_subdir_test/main.cpp
Normal file
13
test/cmake_subdir_test/main.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright 2024 Peter Dimov
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/optional/optional.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::optional<int> o1;
|
||||
boost::optional<int> o2( 0 );
|
||||
o1 = o2;
|
||||
return *o1;
|
||||
}
|
Reference in New Issue
Block a user