Commit 6b27a7c4 by Zack Weinberg

Test for proper handling of 8-bit characters in strings.

Reported by Per Hedbor <per@idonex.se>.

From-SVN: r32221
parent 6e38f244
static const unsigned char f[] = "\0\377";
static const unsigned char g[] = "\0";
int main(void)
{
if (sizeof f != 3 || sizeof g != 3)
abort ();
if (f[0] != g[0])
abort ();
if (f[1] != g[1])
abort ();
if (f[2] != g[2])
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment