Alessandro Bonazzi e075990ed3 Patch level : 12.0 no-patch
Files correlati     :
Commento            :

Aggiunto il preprocessore c++ mcpp per sostituire il compilatore nella compilazione delle maschere.
2020-11-28 16:24:08 +01:00

27 lines
563 B
C

/* m_34_eucjp.c: Multi-byte character constant encoded in EUC-JP. */
#include "defs.h"
main( void)
{
char * ptr;
fputs( "started\n", stderr);
/* 34.1: */
#pragma __setlocale( "eucjp") /* For MCPP */
#pragma setlocale( "eucjp") /* For MCPP on VC */
#if '»ú' == '\xbb\xfa'
ptr = "Multi-byte character is encoded in EUC-JP.";
#else
ptr = "I cannot understand EUC-JP.";
#endif
assert( strcmp( ptr, "I cannot understand EUC-JP.") != 0);
fputs( "success\n", stderr);
return 0;
}