Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/wchar-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 } |