diff options
author | Ian Lance Taylor <iant@google.com> | 2009-09-02 17:35:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-09-02 17:35:30 +0000 |
commit | fd2ab214c53f39a2fb68d3b394103db62af78c50 (patch) | |
tree | 582d9e320bdd5fa506744b2a48b6f499f314d056 /libcpp/macro.c | |
parent | dd3824a300726c9b5f8f83d58ee714f59dc90a16 (diff) | |
download | gcc-fd2ab214c53f39a2fb68d3b394103db62af78c50.zip gcc-fd2ab214c53f39a2fb68d3b394103db62af78c50.tar.gz gcc-fd2ab214c53f39a2fb68d3b394103db62af78c50.tar.bz2 |
macro.c (stringify_arg): Escape CPP_WCHAR tokens.
libcpp/:
* macro.c (stringify_arg): Escape CPP_WCHAR tokens.
gcc/testsuite/:
* gcc.dg/20090902-1.c: New test.
From-SVN: r151343
Diffstat (limited to 'libcpp/macro.c')
-rw-r--r-- | libcpp/macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/macro.c b/libcpp/macro.c index e051fbc..f318059 100644 --- a/libcpp/macro.c +++ b/libcpp/macro.c @@ -377,7 +377,7 @@ stringify_arg (cpp_reader *pfile, macro_arg *arg) } escape_it = (token->type == CPP_STRING || token->type == CPP_CHAR - || token->type == CPP_WSTRING || token->type == CPP_STRING + || token->type == CPP_WSTRING || token->type == CPP_WCHAR || token->type == CPP_STRING32 || token->type == CPP_CHAR32 || token->type == CPP_STRING16 || token->type == CPP_CHAR16); |