You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
annotate and generate STRING-literals precisly according to their length (#421)
he annotator tells us exactly how long every string-literal is by craeting dedicated STRING-types for them. The expression generator now applies two different strategies:
when generating string-literals in declarations (outside of a body) we generate the full length of the string-literal. So a STRING[80] = 'a' will generate 80 additional \00 to fill the full vector
when generating string-literals in the body we generate only the string's real length. So an assignment: x := 'a'; will generate an vec of length 2 with 'a' and \00 in it (so we don't fill x.
fixes#417
Copy file name to clipboardexpand all lines: src/codegen/tests/initialization_test/snapshots/rusty__codegen__tests__initialization_test__global_initializers__initial_values_in_global_constant_variables.snap
Copy file name to clipboardexpand all lines: src/codegen/tests/snapshots/rusty__codegen__tests__code_gen_tests__expression_list_as_array_initilization.snap
Copy file name to clipboardexpand all lines: src/codegen/tests/snapshots/rusty__codegen__tests__code_gen_tests__program_with_special_chars_in_string.snap
0 commit comments