File: 12_padstale.t

package info (click to toggle)
libtest-leaktrace-perl 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 412 kB
  • ctags: 879
  • sloc: ansic: 3,215; perl: 1,789; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!perl -w

use strict;
use Test::More tests => 1;

use Test::LeakTrace;

sub foo{
	my $foo = 42;
	my @array;
	my %hash;

	[\$foo, \@array, \%hash];
}


no_leaks_ok \&foo, 'PADSTALE sv is not a memory leak';