Blame cpp-test/test-t/n_cnvucn.C

Packit b40e2e
/* n_cnvucn.C:  C++ Conversion from multi-byte character to UCN.    */
Packit b40e2e
/* This conversion takes place in the translation phase 1.  */
Packit b40e2e
Packit b40e2e
#define str( a)     # a
Packit b40e2e
Packit b40e2e
    /* "\"\u6F22\u5B57\"" or "\"\\u6F22\\u5B57\""   */
Packit b40e2e
    str( "´Á»ú")
Packit b40e2e
Packit b40e2e
/* { dg-do preprocess }
Packit b40e2e
   { dg-options "-std=c++98 -finput-charset=EUC-JP" }
Packit b40e2e
   { dg-final { if ![file exist n_cnvucn.i] { return }                  } }
Packit b40e2e
   { dg-final { if \{ [grep n_cnvucn.i "\"\\\"\\\\u6F22\\\\u5B57\\\"\"|\"\\\"\\\\\\\\u6F22\\\\\\\\u5B57\\\"\""] != ""   \} \{   } }
Packit b40e2e
   { dg-final { return \}                                               } }
Packit b40e2e
   { dg-final { fail "n_cnvucn.C: UCN conversion"                       } }
Packit b40e2e
 */
Packit b40e2e