☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
testsuite
/
semko
/
foreachstmt02.stp
☽
☼
testsuite/semko/foreachstmt02.stp
code
plain
raw
1
#! stap -p2
2
3
# limit keyword with function returning a string expression
4
5
global array
6
7
function str_ret_type()
8
{
9
return "hi"
10
}
11
12
probe begin
13
{
14
array[0] = 1
15
foreach (key in array limit str_ret_type())
16
printf("key %d, value %d\n", key, array[key])
17
}