diff --git a/src/test/test-models/good/parser-generator/data_qualifier_scope_xformed_data.stan b/src/test/test-models/good/parser-generator/data_qualifier_scope_xformed_data.stan index cad5d2abe78..7c4391e9fdb 100644 --- a/src/test/test-models/good/parser-generator/data_qualifier_scope_xformed_data.stan +++ b/src/test/test-models/good/parser-generator/data_qualifier_scope_xformed_data.stan @@ -7,13 +7,22 @@ functions { } transformed data { - vector[1] y; + vector[1] td_y; { - vector[1] y_guess = [1]'; - vector[1] theta = [1]'; - real x_r[0] = {1.0}; - int x_i[0]; - - y = algebra_solver(target, y_guess, theta, x_r, x_i); + vector[1] td_y_guess = [1]'; + vector[1] td_theta = [1]'; + real td_x_r[0] = {1.0}; + int td_x_i[0]; + td_y = algebra_solver(target, td_y_guess, td_theta, td_x_r, td_x_i); + } +} +generated quantities { + vector[1] gq_y; + { + vector[1] gq_y_guess = [1]'; + vector[1] gq_theta = [1]'; + real gq_x_r[0] = {1.0}; + int gq_x_i[0]; + gq_y = algebra_solver(target, gq_y_guess, gq_theta, gq_x_r, gq_x_i); } }