summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko/foreachstmt02.stp
blob: b3154f3502efb4a88b2f543da97439d06cd62c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! stap -p1

# no identifier after opening paren after foreach keyword

global array

function decl()
{
    array[0] = 1    
    foreach (* in array)
        printf("key %d, value %d\n", key, array[key])
}