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