PR 2140
* testsuite/buildok/delete.stp: Test correct compilation of the
'delete' operator for all "legal" variations.
+2006-01-11 Josh Stone <joshua.i.stone@intel.com>
+
+ PR 2140
+ * testsuite/buildok/delete.stp: Test correct compilation of the
+ 'delete' operator for all "legal" variations.
+
2006-01-11 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (MAXERRORS): Oops, set back to intended default of 1.
--- /dev/null
+#! stap -p4
+#
+# Make sure that 'delete' works in all variations.
+#
+# NOTE: It hasn't been decided yet whether 'delete' should work on scalar
+# numbers and strings, so for now those are commented out.
+
+global a, b, c, d, e, f
+
+probe begin {
+ a = 1; #delete a;
+ b = "b"; #delete b;
+ c <<< 1; delete c;
+ d[1] = 1; delete d[1]; delete d;
+ e[1] = "e"; delete e[1]; delete e;
+ f[1] <<< 1; delete f[1]; delete f;
+
+ x = 1; #delete x;
+ y = "y"; #delete y;
+}