Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / config / test / boost_no_char16_t.ipp
index 27d49c6..4efff95 100644 (file)
@@ -7,11 +7,11 @@
 
 //  See http://www.boost.org/libs/config for more information.
 
-//  MACRO:         BOOST_NO_CHAR16_T
+//  MACRO:         BOOST_NO_CXX11_CHAR16_T
 //  TITLE:         C++0x char16_t unavailable
 //  DESCRIPTION:   The compiler does not support C++0x char16_t
 
-namespace boost_no_char16_t {
+namespace boost_no_cxx11_char16_t {
 
 //  Microsoft VC++ 2010, and possibly other compilers, provides
 //  a typedef for char16_t rather than a new type. We want that
@@ -24,8 +24,8 @@ void f(const unsigned long*){}
 
 int test()
 {
-  const char16_t* p;
-  f(p);
+  const char16_t p(0);
+  f(&p);
   return 0;
 }