]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/fshort-wchar.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / fshort-wchar.c
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
2
3 /* { dg-do run } */
4 /* { dg-options "-fshort-wchar" } */
5 /* { dg-options "-fshort-wchar -Wl,--no-wchar-size-warning" { target arm_eabi } } */
6
7 /* Source: Neil Booth, 10 Dec 2002.
8
9 Test that __WCHAR_MAX__ is correct with -fshort-wchar. */
10
11 extern void abort (void);
12
13 int main ()
14 {
15 __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
16
17 if (w != __WCHAR_MAX__)
18 abort ();
19
20 return 0;
21 }