xref: /openbsd/gnu/usr.bin/perl/lib/perl5db/t/rt-124203b (revision d415bd75)
1use threads;
2print "PID $$\n";
3my $x;
4sub sub1 {
5  print("In the thread\n");
6}
7sub foo:lvalue {
8  my $thr = threads->create(\&sub1);
9  $thr->join;
10  $x;
11}
12foo() = "One";
13print "Finished $x\n";
14