| 1 | #include <boost/optional/optional.hpp>
|
|---|
| 2 | #include <boost/detail/lightweight_test.hpp>
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | int main()
|
|---|
| 6 | {
|
|---|
| 7 | int const i = 10;
|
|---|
| 8 | boost::optional<int const &> o = i; // copy-initialization
|
|---|
| 9 | BOOST_TEST(&*o == &i); // failed on gcc3.4 and 4.1.
|
|---|
| 10 |
|
|---|
| 11 | return boost::report_errors();
|
|---|
| 12 | }
|
|---|