aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/bstr_results_shared_not_freed.zc
blob: ef32171c0501bf1496c6c82a05a201bc8cc19b4b (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect: 4/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	bstr s = b"ab" + b"cd";
	rt.free(s);
	pn(len(s));
	return 0;
}