diff options
Diffstat (limited to 'testsuite/parseko/foreachstmt05.stp')
-rwxr-xr-x | testsuite/parseko/foreachstmt05.stp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/parseko/foreachstmt05.stp b/testsuite/parseko/foreachstmt05.stp new file mode 100755 index 00000000..a499b1f6 --- /dev/null +++ b/testsuite/parseko/foreachstmt05.stp @@ -0,0 +1,12 @@ +#! stap -p1 + +# missing closing paren after foreach keyword + +global array + +function decl() +{ + array[0] = 1 + foreach (key in array + printf("key %d, value %d\n", key, array[key]) +} |