From 9f6cfc6aa98476877444bf86e35c13bec9ae7080 Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 6 Nov 2006 16:18:18 +0000 Subject: 2006-11-06 David Smith * 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. --- testsuite/semko/foreachstmt01.stp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 testsuite/semko/foreachstmt01.stp (limited to 'testsuite/semko/foreachstmt01.stp') diff --git a/testsuite/semko/foreachstmt01.stp b/testsuite/semko/foreachstmt01.stp new file mode 100755 index 00000000..6797c8d6 --- /dev/null +++ b/testsuite/semko/foreachstmt01.stp @@ -0,0 +1,12 @@ +#! stap -p2 + +# limit keyword with string expression + +global array + +probe begin +{ + array[0] = 1 + foreach (key in array limit "hi") + printf("key %d, value %d\n", key, array[key]) +} -- cgit