summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/null.stp
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-06-18 17:19:29 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-06-18 17:19:29 -0400
commited35c8ac5bc2da83fedfb53d0c283ee8c5c77f39 (patch)
treee93912836e0d984a4ea722a483ef9bb0cdf1f4a3 /testsuite/buildok/null.stp
parent905728a036bf9d5cf0c21d684ad53882489c82c8 (diff)
downloadsystemtap-steved-ed35c8ac5bc2da83fedfb53d0c283ee8c5c77f39.tar.gz
systemtap-steved-ed35c8ac5bc2da83fedfb53d0c283ee8c5c77f39.tar.xz
systemtap-steved-ed35c8ac5bc2da83fedfb53d0c283ee8c5c77f39.zip
PR10298: tweak global param initialization for NULL etc.
* translate.cxx (translate_pass): Emit module_parm stuff at the very end. * testsuite/buildok/null.stp: New test.
Diffstat (limited to 'testsuite/buildok/null.stp')
-rwxr-xr-xtestsuite/buildok/null.stp5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/buildok/null.stp b/testsuite/buildok/null.stp
new file mode 100755
index 00000000..9bcaf3f6
--- /dev/null
+++ b/testsuite/buildok/null.stp
@@ -0,0 +1,5 @@
+#! stap -p4
+
+# PR10298
+global foo = 5
+probe begin { if (foo == NULL) log("hello") }