+SKIP: {
+ eval "use Tie::Hash";
+ skip 'Tie::Hash required to test uvar magic on tied hashes' => 2 * 5 + 4 if $@;
+ diag "Using Tie::Hash $Tie::Hash::VERSION" if defined $Tie::Hash::VERSION;
+
+ tie my %h, 'Tie::StdHash';
+ %h = (x => 7, y => 8);
+
+ $res = check { cast %h, $wiz } { }, 'cast on tied hash';
+ ok $res, 'uvar: cast on tied hash succeeded';
+
+ $x = check { $h{x} } { fetch => 1 }, 'fetch on tied hash';
+ is $x, 7, 'uvar: fetch on tied hash succeeded';
+
+ check { $h{x} = 9 } { store => 1 }, 'store on tied hash';
+
+ $x = check { exists $h{x} } { exists => 1 }, 'exists on tied hash';
+ ok $x, 'uvar: exists on tied hash succeeded';
+
+ $x = check { delete $h{x} } { delete => 1 }, 'delete on tied hash';
+ is $x, 9, 'uvar: delete on tied hash succeeded';
+}
+