From d950d08e6f21c19fa63a4435fd7071fe02c66745 Mon Sep 17 00:00:00 2001 From: jistone Date: Fri, 22 Dec 2006 22:18:02 +0000 Subject: 2006-12-22 Josh Stone * stap.1.in: Document how to specify the size of global arrays. testsuite/ * buildok/array_size.stp, parseko/array01.stp, parseko/array02.stp, parseko/array03.stp, parseko/array04.stp, transko/array01.stp, systemtap.base/array_size.exp, systemtap.base/array_size.stp: Tests for specifying the size of global arrays. --- testsuite/parseko/array01.stp | 4 ++++ testsuite/parseko/array02.stp | 4 ++++ testsuite/parseko/array03.stp | 4 ++++ testsuite/parseko/array04.stp | 4 ++++ 4 files changed, 16 insertions(+) create mode 100755 testsuite/parseko/array01.stp create mode 100755 testsuite/parseko/array02.stp create mode 100755 testsuite/parseko/array03.stp create mode 100755 testsuite/parseko/array04.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/array01.stp b/testsuite/parseko/array01.stp new file mode 100755 index 00000000..81e7f249 --- /dev/null +++ b/testsuite/parseko/array01.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# array size must be >0 +global a[0] diff --git a/testsuite/parseko/array02.stp b/testsuite/parseko/array02.stp new file mode 100755 index 00000000..2825cce5 --- /dev/null +++ b/testsuite/parseko/array02.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# array size must have a reasonable upper limit +global a[1000000000] diff --git a/testsuite/parseko/array03.stp b/testsuite/parseko/array03.stp new file mode 100755 index 00000000..601efff6 --- /dev/null +++ b/testsuite/parseko/array03.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# arrays can't be initialized with a scalar number +global a[10] = 42 diff --git a/testsuite/parseko/array04.stp b/testsuite/parseko/array04.stp new file mode 100755 index 00000000..476685ed --- /dev/null +++ b/testsuite/parseko/array04.stp @@ -0,0 +1,4 @@ +#! stap -p1 + +# arrays can't be initialized with a scalar string +global a[10] = "foobar" -- cgit