Fixed unit test failures caused by previous commit

This commit is contained in:
PKEuS 2012-11-11 15:16:08 +01:00
parent 4ea2df8671
commit b15ff0c0e3
2 changed files with 8 additions and 8 deletions

View File

@ -3712,7 +3712,7 @@ private:
"a . foo ( ) ; "
"wchar_t c ; c = 0 ; "
"}";
ASSERT_EQUALS(expected, tok(code));
ASSERT_EQUALS(expected, tok(code, false));
}
void simplifyTypedef2() {

View File

@ -7236,7 +7236,7 @@ private:
" _stscanf(dst, _T(\"%s\"), dst);"
"}"
"TBYTE tbyte;";
const char expected[] = "unsigned short wc ; "
const char expected[] = "wchar_t wc ; "
"char c ; "
"char * ptstr ; "
"char * lptstr ; "
@ -7282,24 +7282,24 @@ private:
" _tscanf(_T(\"%s\"), dst);"
" _stscanf(dst, _T(\"%s\"), dst);"
"}";
const char expected[] = "unsigned short wc ; "
"unsigned short c ; "
const char expected[] = "wchar_t wc ; "
"wchar_t c ; "
"unsigned short * ptstr ; "
"unsigned short * lptstr ; "
"const unsigned short * pctstr ; "
"const unsigned short * lpctstr ; "
"unsigned char tbyte ; "
"void foo ( ) { "
"unsigned short tc ; tc = \'c\' ; "
"unsigned short src [ 10 ] = \"123456789\" ; "
"unsigned short dst [ 10 ] ; "
"wchar_t tc ; tc = \'c\' ; "
"wchar_t src [ 10 ] = \"123456789\" ; "
"wchar_t dst [ 10 ] ; "
"wcscpy ( dst , src ) ; "
"dst [ 0 ] = 0 ; "
"wcscat ( dst , src ) ; "
"unsigned short * d ; d = wcsdup ( str ) ; "
"wprintf ( \"Hello world!\n\" ) ; "
"swprintf ( dst , \"Hello!\n\" ) ; "
"snwprintf ( dst , sizeof ( dst ) / sizeof ( unsigned short ) , \"Hello world!\n\" ) ; "
"snwprintf ( dst , sizeof ( dst ) / sizeof ( wchar_t ) , \"Hello world!\n\" ) ; "
"wscanf ( \"%s\" , dst ) ; "
"swscanf ( dst , \"%s\" , dst ) ; "
"}";