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

# missing expression after limit

global array

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