Add more testcases for simplifyPlatformTypes:

these should cover up some unused branches.
This commit is contained in:
Edoardo Prezioso 2012-11-05 00:35:34 +01:00
parent 960dad0c21
commit 1d4cacb3f1
1 changed files with 5 additions and 2 deletions

View File

@ -7332,9 +7332,11 @@ private:
"HRESULT R;"
"LONG_PTR S;"
"HANDLE T;"
"PHANDLE U;"
"SSIZE_T _ssize_t;"
"UINT_PTR uint_ptr;"
"WPARAM wparam;"
"HALF_PTR half_ptr;"
"INT_PTR int_ptr;";
const char expected[] = "unsigned int sizeof_short ; sizeof_short = 2 ; "
@ -7362,11 +7364,12 @@ private:
"long R ; "
"long long S ; "
"void * T ; "
"void * * U ; "
"long long _ssize_t ; "
"unsigned long long uint_ptr ; "
"unsigned long long wparam ; "
"long long int_ptr ;"
;
"int half_ptr ; "
"long long int_ptr ;";
ASSERT_EQUALS(expected, tokenizeAndStringify(code, true, true, Settings::Win64));
}