aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/child-outlives-parent.rs
blob: 01ee19afb44c1e2f9255abcc0e87bfe321ee192a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// xfail-boot
// xfail-stage0
// Reported as issue #126, child leaks the string.

fn child2(str s) {
}

fn main() {
  auto x = spawn child2("hi");
}