diff options
Diffstat (limited to 'testsuite/parseok/foreachstmt01.stp')
-rwxr-xr-x | testsuite/parseok/foreachstmt01.stp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/parseok/foreachstmt01.stp b/testsuite/parseok/foreachstmt01.stp new file mode 100755 index 00000000..2b306474 --- /dev/null +++ b/testsuite/parseok/foreachstmt01.stp @@ -0,0 +1,10 @@ +#! stap -p1 + +probe one +{ + foreach ([x+,y] in a limit 5) ; + n = 5 ; + foreach ([x,y-] in a limit n) ; + foreach ([x,y] in a+ limit n + 2) ; + foreach ([x,y] in a+ limit ++n) ; +} |