Lines Matching refs:prototype
6 use Sub::Util qw( prototype set_prototype );
10 is( prototype('f'), undef, 'no prototype');
11 is( CORE::prototype('f'), undef, 'no prototype from CORE');
14 is( prototype('f'), '$', 'prototype');
15 is( CORE::prototype('f'), '$', 'prototype from CORE');
19 is( prototype('f'), undef, 'remove prototype');
22 is( prototype('f'), '', 'empty prototype');
25 is( prototype('g'), '@', '@ prototype');
28 is( prototype('g'), undef, 'remove prototype');
31 is( prototype('stub'), undef, 'non existing sub');
34 is( prototype('stub'), '$$$', 'change non existing sub');
37 is( prototype('f_decl'), '$$$$', 'forward declaration');
40 is( prototype('f_decl'), '\%', 'change forward declaration');