add trailing return type test for cpp