Blame test-t/m_36_jis.t

Packit Service 8bf002
/*
Packit Service 8bf002
 * m_36_jis.t:  Handling of 0x5c ('\\'), 0x22 ('"'), 0x27 ('\'')
Packit Service 8bf002
 * in ISO-2022-JP multi-byte character.
Packit Service 8bf002
 */
Packit Service 8bf002
Packit Service 8bf002
#define     str( a)     # a
Packit Service 8bf002
Packit Service 8bf002
/* 36.1:    0x5c in multi-byte character is not an escape character.    */
Packit Service 8bf002
Packit Service 8bf002
#pragma __setlocale( "jis")                 /* For MCPP     */
Packit Service 8bf002
#pragma setlocale( "jis")                   /* For MCPP on VC   */
Packit Service 8bf002
Packit Service 8bf002
#if     '字' == '\x3b\x7a' && '移' != '\x30\x5c'
Packit Service 8bf002
    Bad handling of '\\' in multi-byte character.
Packit Service 8bf002
#endif
Packit Service 8bf002
Packit Service 8bf002
/* 36.2:    # operater should not insert '\\' before 0x5c in multi-byte
Packit Service 8bf002
        character.  */
Packit Service 8bf002
    str( "移動");
Packit Service 8bf002
   /* \x22\x5c\x22\x30\x5c\x46\x30\x5c\x22\x22 with shift-sequence  */
Packit Service 8bf002
Packit Service 8bf002
/* 36.3:    # operater should not insert '\\' before 0x22 in multi-byte
Packit Service 8bf002
        character.  */
Packit Service 8bf002
    str( "陰陽");
Packit Service 8bf002
   /* \x22\x5c\x22\x31\x22\x4d\x5b\x5c\x22\x22 with shift-sequence  */
Packit Service 8bf002
Packit Service 8bf002
/* 36.4:    # operater should not insert '\\' before 0x27 in multi-byte
Packit Service 8bf002
        character.  */
Packit Service 8bf002
    str( "宇宙");
Packit Service 8bf002
   /* \x22\x5c\x22\x31\x27\x43\x68\x5c\x22\x22 with shift-sequence  */
Packit Service 8bf002