PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / fshort-wchar.c
blob63f6d5d011713e08ab29d29bd34ce907ff2ee8c1
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
3 /* { dg-do run } */
4 /* { dg-options "-fshort-wchar" } */
5 /* { dg-options "-fshort-wchar -Wl,--no-wchar-size-warning" { target arm_eabi } } */
7 /* Source: Neil Booth, 10 Dec 2002.
9 Test that __WCHAR_MAX__ is correct with -fshort-wchar. */
11 extern void abort (void);
13 int main ()
15 __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
17 if (w != __WCHAR_MAX__)
18 abort ();
20 return 0;