diff options
author | dsmith <dsmith> | 2006-11-06 16:18:18 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2006-11-06 16:18:18 +0000 |
commit | 9f6cfc6aa98476877444bf86e35c13bec9ae7080 (patch) | |
tree | 86bedc0b89af735dce2bd2d0b5c812d1f52b4899 /testsuite/parseko | |
parent | 27f21e8c049b0cd20fd2d4e2fd9b96cad6c910cc (diff) | |
download | systemtap-steved-9f6cfc6aa98476877444bf86e35c13bec9ae7080.tar.gz systemtap-steved-9f6cfc6aa98476877444bf86e35c13bec9ae7080.tar.xz systemtap-steved-9f6cfc6aa98476877444bf86e35c13bec9ae7080.zip |
2006-11-06 David Smith <dsmith@redhat.com>
* parseko/foreachstmt06.stp: Added new test for foreach "limit"
keyword.
* parseko/foreachstmt07.stp: Ditto.
* parseok/foreachstmt01.stp: Ditto.
* semko/foreachstmt01.stp: Ditto.
* semko/foreachstmt02.stp: Ditto.
Diffstat (limited to 'testsuite/parseko')
-rwxr-xr-x | testsuite/parseko/foreachstmt06.stp | 12 | ||||
-rwxr-xr-x | testsuite/parseko/foreachstmt07.stp | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/parseko/foreachstmt06.stp b/testsuite/parseko/foreachstmt06.stp new file mode 100755 index 00000000..43addb90 --- /dev/null +++ b/testsuite/parseko/foreachstmt06.stp @@ -0,0 +1,12 @@ +#! stap -p1 + +# missing expression after limit + +global array + +function decl() +{ + array[0] = 1 + foreach (key in array limit) + printf("key %d, value %d\n", key, array[key]) +} diff --git a/testsuite/parseko/foreachstmt07.stp b/testsuite/parseko/foreachstmt07.stp new file mode 100755 index 00000000..a7a9c9b9 --- /dev/null +++ b/testsuite/parseko/foreachstmt07.stp @@ -0,0 +1,12 @@ +#! stap -p1 + +# missing limit keyword but with an expression + +global array + +function decl() +{ + array[0] = 1 + foreach (key in array 5) + printf("key %d, value %d\n", key, array[key]) +} |