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