char16_t and char32_t tests: removed dependencies on Unicode literals, add test for implementations that are typedefs and so not really conforming. Unicode literal test: now check for all three forms of Unicode literals - u8, u, and U.

[SVN r75694]
This commit is contained in:
Beman Dawes
2011-11-27 16:19:55 +00:00
parent 7f68d14175
commit 8828d82d4d
6 changed files with 28 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#
# Regression test Jamfile for boost configuration setup.
# *** DO NOT EDIT THIS FILE BY HAND ***
# This file was automatically generated on Wed Jul 13 18:50:14 2011
# This file was automatically generated on Sun Nov 27 09:43:19 2011
# by libs/config/tools/generate.cpp
# Copyright John Maddock.
# Use, modification and distribution are subject to the

View File

@ -13,12 +13,19 @@
namespace boost_no_char16_t {
void quiet_warning(const char16_t*){}
// Microsoft VC++ 2010, and possibly other compilers, provides
// a typedef for char16_t rather than a new type. We want that
// to be an error, so provide an overloaded function that will
// be ambiguous if char16_t is just a typedef.
void f(const char16_t*){}
void f(const unsigned short*){}
void f(const unsigned int*){}
void f(const unsigned long*){}
int test()
{
const char16_t* p = u"abc";
quiet_warning(p);
const char16_t* p;
f(p);
return 0;
}

View File

@ -12,12 +12,19 @@
namespace boost_no_char32_t {
void quiet_warning(const char32_t*){}
// Microsoft VC++ 2010, and possibly other compilers, provides
// a typedef for char32_t rather than a new type. We want that
// to be an error, so provide an overloaded function that will
// be ambiguous if char16_t is just a typedef.
void f(const char32_t*){}
void f(const unsigned short*){}
void f(const unsigned int*){}
void f(const unsigned long*){}
int test()
{
const char32_t* p = U"abc";
quiet_warning(p);
const char32_t* p;
f(p);
return 0;
}

View File

@ -17,6 +17,8 @@ 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;
}

View File

@ -1102,6 +1102,10 @@ void print_boost_macros()
// END GENERATED BLOCK
PRINT_MACRO(BOOST_INTEL);

View File

@ -1,4 +1,4 @@
// This file was automatically generated on Wed Jul 13 18:50:14 2011
// This file was automatically generated on Sun Nov 27 09:43:19 2011
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the