### ----------------------------------------------------
### -- File::Temp
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Scott Duff, Rod Taylor, Márton Polgár, Tom Browder
### -- File: t/02-gc.rakutest
### ----------------------------------------------------
use lib <lib>;
use Test;
use File::Temp;

plan 2;

my ($fn, $fh) = tempfile;
is-deeply $fn.IO.e, True, 'file exists when we start';

$fh.DESTROY;
is-deeply $fn.IO.e, False, 'file not longer exists after .DESTROY';


