commit e1595dc1c75393361878450cc70fcefee131810a from: Tom Jones via: Mark Jamsek date: Fri Sep 23 14:39:14 2022 UTC add regress test for function prototype in hunk header commit - 1edd9c2b609adfa7ed93dbd839b7d683e695feaa commit + e1595dc1c75393361878450cc70fcefee131810a blob - /dev/null blob + 2ae051a0a1e04a0e219eb0a362d5d74f2039a76f (mode 644) --- /dev/null +++ test/expect124.diff @@ -0,0 +1,9 @@ +--- test124.left-p.txt ++++ test124.right-p.txt +@@ -11,5 +11,5 @@ return_test(int test) { + + struct testfile * + return_test(int test) { +- return NULL; ++ return test*2; + } blob - /dev/null blob + 2c5778978ce320b6fb48d94aeafccc0e8638db30 (mode 644) --- /dev/null +++ test/test124.left-p.txt @@ -0,0 +1,15 @@ +static void +doSomethingThenPrintHello(int test) +{ + test = test << 4; + if (test % 8 == 6) { + return; + } + + print("goodbye\n"); +} + +struct testfile * +return_test(int test) { + return NULL; +} blob - /dev/null blob + 9f2252ebec77d0ee58740143c4fa0494302f1899 (mode 644) --- /dev/null +++ test/test124.right-p.txt @@ -0,0 +1,15 @@ +static void +doSomethingThenPrintHello(int test) +{ + test = test << 4; + if (test % 8 == 6) { + return; + } + + print("goodbye\n"); +} + +struct testfile * +return_test(int test) { + return test*2; +}