1 /* m_33_eucjp.c:    Wide character constant encoded in EUC-JP.  */
2 
3 #include    "defs.h"
4 #include    <limits.h>
5 #define     BYTES_VAL   (1 << CHAR_BIT)
6 
main(void)7 main( void)
8 {
9     char *  ptr;
10 
11     fputs( "started\n", stderr);
12 
13 /* 33.1:    L'ch'.  */
14 
15 #pragma __setlocale( "eucjp")               /* For MCPP     */
16 #pragma setlocale( "eucjp")                 /* For MCPP on VC   */
17 
18 #if     L'��' == '\xbb' * BYTES_VAL + '\xfa'
19     ptr = "Wide character is encoded in EUC-JP.";
20 #elif   L'��' == '\xfa' * BYTES_VAL + '\xbb'
21     ptr = "Wide character is encoded in EUC-JP."
22     "Inverted order of evaluation.";
23 #else
24     ptr = "I cannot understand EUC-JP.";
25 #endif
26 
27     assert( strcmp( ptr, "I cannot understand EUC-JP.") != 0);
28     fputs( "success\n", stderr);
29     return  0;
30 }
31 
32