Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / config / test / boost_no_unicode_literals.ipp
1 //  (C) Copyright Beman Dawes 2008
2
3 //  Use, modification and distribution are subject to the
4 //  Boost Software License, Version 1.0. (See accompanying file
5 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 //  See http://www.boost.org/libs/config for more information.
8
9 //  MACRO:         BOOST_NO_CXX11_UNICODE_LITERALS
10 //  TITLE:         C++0x unicode literals unavailable
11 //  DESCRIPTION:   The compiler does not support C++0x Unicode literals (N2442)
12
13 namespace boost_no_cxx11_unicode_literals {
14
15 template <class CharT>
16 void quiet_warning(const CharT*){}
17
18 int test()
19 {
20   const char* c8 = u8"";
21   const char16_t* c16 = u"";
22   const char32_t* c32 = U"";
23   quiet_warning(c8);
24   quiet_warning(c16);
25   quiet_warning(c32);
26   return 0;
27 }
28
29 }