summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/nineteen.stp
blob: 2019e2098cf1491d8c2a68acaa227196ba414f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! stap -p4

function msg1 (x) {
        log(x)
}
function msg2 (x,y) {
        log(x." ".y)
}

probe begin {
        msg1("55");
        msg1(sprint(55))

        msg2("100", "GOOD")
        msg2("GOOD", sprint(100))

# the next line caused a compile failure when uncommented; PR 1335
        msg2(sprint(100), "GOOD")

        exit()
}