summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/mpl/test/same_as.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/mpl/test/same_as.cpp')
-rw-r--r--src/boost/libs/mpl/test/same_as.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/boost/libs/mpl/test/same_as.cpp b/src/boost/libs/mpl/test/same_as.cpp
new file mode 100644
index 000000000..41a7c573a
--- /dev/null
+++ b/src/boost/libs/mpl/test/same_as.cpp
@@ -0,0 +1,23 @@
+
+// Copyright Aleksey Gurtovoy 2001-2004
+//
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// See http://www.boost.org/libs/mpl for documentation.
+
+// $Id$
+// $Date$
+// $Revision$
+
+#include <boost/mpl/same_as.hpp>
+
+#include <boost/mpl/apply.hpp>
+#include <boost/mpl/aux_/test.hpp>
+
+MPL_TEST_CASE()
+{
+ MPL_ASSERT(( apply1< same_as<int>,int > ));
+ MPL_ASSERT_NOT(( apply1< same_as<int>,long > ));
+}