This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/3] Add new semko test case


	* testsuite/semko/var_definition.stp: New test case
---
 testsuite/semko/var_definition.stp | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 testsuite/semko/var_definition.stp

diff --git a/testsuite/semko/var_definition.stp b/testsuite/semko/var_definition.stp
new file mode 100755
index 0000000..62b7cf5
--- /dev/null
+++ b/testsuite/semko/var_definition.stp
@@ -0,0 +1,8 @@
+#! stap -p2
+
+# Variable identifier can't start with $.
+probe begin
+{
+	$var=2015
+	exit()
+}
-- 
1.8.3.1




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]