From 8dfde7def8ec6d2accd316f4fd7e34e3449f7f6f Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 22 Apr 2012 02:41:51 +0200 Subject: [PATCH] Added missing testcase from previous commit. --- test/testtokenize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp index c6b467b55..4c9a7ab01 100644 --- a/test/testtokenize.cpp +++ b/test/testtokenize.cpp @@ -4055,6 +4055,7 @@ private: ASSERT_EQUALS("void f ( int x ) { }", tokenizeAndStringify("void f(x) int x; { }", true)); ASSERT_EQUALS("void f ( int x , char y ) { }", tokenizeAndStringify("void f(x,y) int x; char y; { }", true)); ASSERT_EQUALS("int main ( int argc , char * argv [ ] ) { }", tokenizeAndStringify("int main(argc,argv) int argc; char *argv[]; { }", true)); + ASSERT_EQUALS("int f ( int p , int w , float d ) { }", tokenizeAndStringify("int f(p,w,d) float d; { }", true)); // #1067 - Not simplified. Feel free to fix so it is simplified correctly but this syntax is obsolete. ASSERT_EQUALS("int ( * d ( a , b , c ) ) ( ) int a ; int b ; int c ; { }", tokenizeAndStringify("int (*d(a,b,c))()int a,b,c; { }", true));