* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git] / gcc / testsuite / gcc.dg / fshort-wchar.c
blob074e872358bb2161fbe4816c9b64590b845394c7
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
3 /* { dg-do run } */
4 /* { dg-options "-fshort-wchar" } */
6 /* Source: Neil Booth, 10 Dec 2002.
8 Test that __WCHAR_MAX__ is correct with -fshort-wchar. */
10 int main ()
12 __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
14 if (w != __WCHAR_MAX__)
15 abort ();
17 return 0;