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

17 lines
504 B
C
Raw Blame History

/* u_1_7_utf8.c: Invalid multi-byte character sequence (in string literal,
character constant, header-name or comment). */
#define str( a) # a
#pragma __setlocale( "utf8") /* For MCPP */
main( void)
{
char * cp = str( ""); /* 0xe5ad97 : legal */
char * ecp1 = str( "<EFBFBD><EFBFBD>"); /* 0xc0af : overlong */
char * ecp2 = str( "<EFBFBD><EFBFBD><EFBFBD>"); /* 0xe09fbf : overlong */
char * ecp3 = str( "<EFBFBD><EFBFBD><EFBFBD>"); /* 0xeda080 : UTF-16 surrogate */
return 0;
}