~ubuntu-branches/ubuntu/edgy/mcpp/edgy

« back to all changes in this revision

Viewing changes to test-t/m_33_sjis.t

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2005-04-16 15:58:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050416155816-q9a9ipx724qvf3le
Tags: 2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* m_33_sjis.t: Wide character constant encoded in shift-JIS.   */
 
2
 
 
3
#include    <limits.h>
 
4
#define     BYTES_VAL   (1 << CHAR_BIT)
 
5
 
 
6
/* 33.1:    L'ch'.  */
 
7
 
 
8
#pragma __setlocale( "sjis")                /* For MCPP     */
 
9
#pragma setlocale( "japanese")              /* For Visual C */
 
10
 
 
11
#if     L'��' == '\x8e' * BYTES_VAL + '\x9a'
 
12
    Wide character is encoded in shift-JIS.
 
13
#elif   L'��' == '\x9a' * BYTES_VAL + '\x8e'
 
14
    Wide character is encoded in shift-JIS.
 
15
    Inverted order of evaluation.
 
16
#else
 
17
    I cannot understand shift-JIS.
 
18
#endif
 
19
#if     L'��' < 0
 
20
    Evaluated in negative value.
 
21
#endif
 
22