From 0c3bc42becab158415570294fa98ee96d91a3014 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Sun, 21 Jan 2001 20:12:32 +0000 Subject: [PATCH] new files [SVN r8685] --- iter_adaptor_fail_expected1.cpp | 27 +++++++++++++++++++++++++++ iter_adaptor_fail_expected2.cpp | 28 ++++++++++++++++++++++++++++ iter_adaptor_fail_expected3.cpp | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 iter_adaptor_fail_expected1.cpp create mode 100644 iter_adaptor_fail_expected2.cpp create mode 100644 iter_adaptor_fail_expected3.cpp 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; +}