summaryrefslogtreecommitdiff
path: root/lib/perl5db/t/test-warnLevel-option-1
blob: 04b71f99137ddc8b1c6fc7195c7f156692854071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;

sub foo
{
    print "In foo\n";
    bar();
}

sub bar
{
    print "In baz\n";
    baz();
}

sub baz
{
    warn "This is not a warning.";

    return;
}

sub myfunc
{
    bar();
}

myfunc();