summaryrefslogtreecommitdiff
path: root/libs/config/test/boost_no_unicode_literals.ipp
blob: 1675d2058f1fb22c72c16a81589253851e5e1f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//  (C) Copyright Beman Dawes 2008

//  Use, modification and distribution are subject to 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/config for more information.

//  MACRO:         BOOST_NO_CXX11_UNICODE_LITERALS
//  TITLE:         C++0x unicode literals unavailable
//  DESCRIPTION:   The compiler does not support C++0x Unicode literals (N2442)

namespace boost_no_cxx11_unicode_literals {

void quiet_warning(const char*){}

int test()
{
  const char* c8 = u8"";
  const char16_t* c16 = u"";
  const char32_t* c32 = U"";
  quiet_warning(c8);
  return 0;
}

}