summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok
diff options
context:
space:
mode:
authorfche <fche>2006-09-06 15:01:37 +0000
committerfche <fche>2006-09-06 15:01:37 +0000
commit4b5f3e450724431c52c100143d859846f4009329 (patch)
tree9f56e99a45928635482aa0356b18bac47fa730de /testsuite/parseok
parentbf72ac26078c3c179c98afca46e69827acf4d246 (diff)
downloadsystemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.gz
systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.tar.xz
systemtap-steved-4b5f3e450724431c52c100143d859846f4009329.zip
2006-09-06 Frank Ch. Eigler <fche@elastic.org>
Add basic support for initialized globals. * parse.cxx (parse_global): Parse initialization clause, implement by rewriting to "probe begin { var = value }". * parse.h: Corresponding changes. * stap.1.in: Document optional initialization. 2006-09-06 Frank Ch. Eigler <fche@elastic.org> * parseok/eighteen.stp, semok/twentythree.stp: New files for testing initialized globals.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-xtestsuite/parseok/eighteen.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/parseok/eighteen.stp b/testsuite/parseok/eighteen.stp
new file mode 100755
index 00000000..883a6514
--- /dev/null
+++ b/testsuite/parseok/eighteen.stp
@@ -0,0 +1,6 @@
+#! stap -p1
+
+global c, a = 1
+global b = "hello", d
+
+probe begin { }