forked from boostorg/config
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.
|
# Regression test Jamfile for boost configuration setup.
|
||||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
# *** 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
|
# by libs/config/tools/generate.cpp
|
||||||
# Copyright John Maddock.
|
# Copyright John Maddock.
|
||||||
# Use, modification and distribution are subject to the
|
# Use, modification and distribution are subject to the
|
||||||
|
@@ -13,12 +13,19 @@
|
|||||||
|
|
||||||
namespace boost_no_char16_t {
|
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()
|
int test()
|
||||||
{
|
{
|
||||||
const char16_t* p = u"abc";
|
const char16_t* p;
|
||||||
quiet_warning(p);
|
f(p);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -12,12 +12,19 @@
|
|||||||
|
|
||||||
namespace boost_no_char32_t {
|
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()
|
int test()
|
||||||
{
|
{
|
||||||
const char32_t* p = U"abc";
|
const char32_t* p;
|
||||||
quiet_warning(p);
|
f(p);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,6 +17,8 @@ void quiet_warning(const char*){}
|
|||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
const char* c8 = u8"";
|
const char* c8 = u8"";
|
||||||
|
const char16_t* c16 = u"";
|
||||||
|
const char32_t* c32 = U"";
|
||||||
quiet_warning(c8);
|
quiet_warning(c8);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -1102,6 +1102,10 @@ void print_boost_macros()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// END GENERATED BLOCK
|
// END GENERATED BLOCK
|
||||||
|
|
||||||
PRINT_MACRO(BOOST_INTEL);
|
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
|
// by libs/config/tools/generate.cpp
|
||||||
// Copyright John Maddock 2002-4.
|
// Copyright John Maddock 2002-4.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
|
Reference in New Issue
Block a user