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

« back to all changes in this revision

Viewing changes to test-t/i_33_gb.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
 
/* i_33_gb.t:   Wide character constant encoded in GB-2312. */
2
 
 
3
 
#include    <limits.h>
4
 
#define     BYTES_VAL   (1 << CHAR_BIT)
5
 
 
6
 
/* 33.1:    L'ch'.  */
7
 
 
8
 
#pragma __setlocale( "gb2312")              /* For MCPP     */
9
 
#pragma setlocale( "chinese-simplified")    /* For Visual C */
10
 
 
11
 
#if     L'��' == '\xd7' * BYTES_VAL + '\xd6'
12
 
    Wide character is encoded in GB 2312.
13
 
#elif   L'��' == '\xd6' * BYTES_VAL + '\xd7'
14
 
    Wide character is encoded in GB 2312.
15
 
    Inverted order of evaluation.
16
 
#else
17
 
    I cannot understand GB-2312.
18
 
#endif
19
 
#if     L'��' < 0
20
 
    Evaluated in negative value.
21
 
#endif
22