repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
cpp
/
wchar-1.c
blob
ac9b38b80da775a07f055e2c35bab9070b8fd7da
1
/* Copyright (C) 2002 Free Software Foundation, Inc. */
2
3
/* { dg-do run } */
4
/* { dg-options "-w" } */
5
6
/* Source: Neil Booth, 24 Feb 2002.
7
8
Test if compiler and preprocessor agree on signeness of wide
9
chars. */
10
11
int
main
()
12
{
13
__WCHAR_TYPE__ c
= -
1
;
14
15
#if L
'\x0'
- 1 < 0
16
if
(
c
>
0
)
17
abort
();
18
#else
19
if
(
c
<
0
)
20
abort
();
21
#endif
22
23
return
0
;
24
}