diff options
Diffstat (limited to 'testsuite/parseko/foreachstmt02.stp')
-rwxr-xr-x | testsuite/parseko/foreachstmt02.stp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/parseko/foreachstmt02.stp b/testsuite/parseko/foreachstmt02.stp new file mode 100755 index 00000000..b3154f35 --- /dev/null +++ b/testsuite/parseko/foreachstmt02.stp @@ -0,0 +1,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]) +} |