mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
21 lines
356 B
C
21 lines
356 B
C
/* Copyright (C) 2002 Free Software Foundation, Inc. */
|
|
|
|
/* { dg-do run } */
|
|
/* { dg-options "-fshort-wchar" } */
|
|
|
|
/* Source: Neil Booth, 10 Dec 2002.
|
|
|
|
Test that __WCHAR_MAX__ is correct with -fshort-wchar. */
|
|
|
|
extern void abort (void);
|
|
|
|
int main ()
|
|
{
|
|
__WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
|
|
|
|
if (w != __WCHAR_MAX__)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|