From 1d4cacb3f1172bb6898b7d0159bfce90f80ac863 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Mon, 5 Nov 2012 00:35:34 +0100 Subject: [PATCH] Add more testcases for simplifyPlatformTypes: these should cover up some unused branches. --- test/testtokenize.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index cd566f979..f3fca8b69 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -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)); }