mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
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:
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -1102,6 +1102,10 @@ void print_boost_macros()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_INTEL);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user