blob: ac9b38b80da775a07f055e2c35bab9070b8fd7da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright (C) 2002 Free Software Foundation, Inc. */
/* { dg-do run } */
/* { dg-options "-w" } */
/* Source: Neil Booth, 24 Feb 2002.
Test if compiler and preprocessor agree on signeness of wide
chars. */
int main ()
{
__WCHAR_TYPE__ c = -1;
#if L'\x0' - 1 < 0
if (c > 0)
abort ();
#else
if (c < 0)
abort ();
#endif
return 0;
}
|