From 3b7d49e4aa02ce6e6cdc32800daf25b2bbe46215 Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Wed, 29 Oct 2003 15:47:01 +0000 Subject: [PATCH] *** empty log message *** [SVN r20549] --- test/optional_test_references.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/optional_test_references.cpp b/test/optional_test_references.cpp index 510446b..3582da0 100644 --- a/test/optional_test_references.cpp +++ b/test/optional_test_references.cpp @@ -308,12 +308,23 @@ void test_with_class_type() BOOST_CHECK ( X::count == 0 ) ; } +void test_aliasing() +{ + int a = 1 ; + optional opt(a); + int b = 2 ; + opt = b; + BOOST_CHECK( a == b ) ; + +} + int test_main( int, char* [] ) { try { test_with_class_type(); test_with_builtin_types(); + test_aliasing(); } catch ( ... ) {