OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.c-torture/execute/960321-1.x: Remove.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
wchar_t-1.c
1
/* { dg-options "-finput-charset=utf-8" } */
2
typedef __WCHAR_TYPE__ wchar_t;
3
wchar_t x[] = L"Ä";
4
wchar_t y = L'Ä';
5
extern void abort (void);
6
extern void exit (int);
7
8
int main (void)
9
{
10
if (sizeof (x) / sizeof (wchar_t) != 2)
11
abort ();
12
if (x[0] != L'Ä' || x[1] != L'\0')
13
abort ();
14
if (y != L'Ä')
15
abort ();
16
exit (0);
17
}