mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:40:26 +08:00
* gcc.c-torture/execute/wchar_t-1.c: Convert to utf-8.
From-SVN: r74491
This commit is contained in:
parent
5ca18844a8
commit
553355fec7
@ -1,5 +1,7 @@
|
||||
2003-12-10 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/wchar_t-1.c: Convert to utf-8.
|
||||
|
||||
* gcc.dg/intermod-1.c: Adjust assembler scan pattern for alpha.
|
||||
|
||||
2003-12-08 Matt Austern <austern@apple.com>
|
||||
|
@ -1,6 +1,6 @@
|
||||
typedef __WCHAR_TYPE__ wchar_t;
|
||||
wchar_t x[] = L"Ä";
|
||||
wchar_t y = L'Ä';
|
||||
wchar_t x[] = L"Ä";
|
||||
wchar_t y = L'Ä';
|
||||
extern void abort (void);
|
||||
extern void exit (int);
|
||||
|
||||
@ -8,9 +8,9 @@ int main (void)
|
||||
{
|
||||
if (sizeof (x) / sizeof (wchar_t) != 2)
|
||||
abort ();
|
||||
if (x[0] != L'Ä' || x[1] != L'\0')
|
||||
if (x[0] != L'Ä' || x[1] != L'\0')
|
||||
abort ();
|
||||
if (y != L'Ä')
|
||||
if (y != L'Ä')
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user