diff --git a/iter_adaptor_fail_expected1.cpp b/iter_adaptor_fail_expected1.cpp new file mode 100644 index 0000000..a28771c --- /dev/null +++ b/iter_adaptor_fail_expected1.cpp @@ -0,0 +1,27 @@ +// Test boost/pending/iterator_adaptors.hpp + +// (C) Copyright Jeremy Siek 1999. Permission to copy, use, modify, +// sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. + +// See http://www.boost.org for most recent version including documentation. + +// Revision History +// 21 Jan 01 Initial version (Jeremy Siek) + +#include +#include +#include +#include + +int main() +{ + typedef boost::iterator_adaptor > adaptor_type; + + adaptor_type i; + i += 4; + return 0; +} diff --git a/iter_adaptor_fail_expected2.cpp b/iter_adaptor_fail_expected2.cpp new file mode 100644 index 0000000..02d980c --- /dev/null +++ b/iter_adaptor_fail_expected2.cpp @@ -0,0 +1,28 @@ +// Test boost/pending/iterator_adaptors.hpp + +// (C) Copyright Jeremy Siek 1999. Permission to copy, use, modify, +// sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. + +// See http://www.boost.org for most recent version including documentation. + +// Revision History +// 21 Jan 01 Initial version (Jeremy Siek) + +#include +#include +#include +#include +#include + +int main() +{ + typedef boost::iterator_adaptor > adaptor_type; + + adaptor_type iter; + --iter; + return 0; +} diff --git a/iter_adaptor_fail_expected3.cpp b/iter_adaptor_fail_expected3.cpp new file mode 100644 index 0000000..3140042 --- /dev/null +++ b/iter_adaptor_fail_expected3.cpp @@ -0,0 +1,32 @@ +// Test boost/pending/iterator_adaptors.hpp + +// (C) Copyright Jeremy Siek 1999. Permission to copy, use, modify, +// sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. + +// See http://www.boost.org for most recent version including documentation. + +// Revision History +// 21 Jan 01 Initial version (Jeremy Siek) + +#include +#include +#include +#include + +class foo { +public: + void bar() { } +}; + +int main() +{ + typedef boost::iterator_adaptor > adaptor_type; + + adaptor_type i; + i->bar(); + return 0; +}