summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/twentyfour.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok/twentyfour.stp')
-rwxr-xr-xtestsuite/buildok/twentyfour.stp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/buildok/twentyfour.stp b/testsuite/buildok/twentyfour.stp
new file mode 100755
index 00000000..a889fe56
--- /dev/null
+++ b/testsuite/buildok/twentyfour.stp
@@ -0,0 +1,14 @@
+#! stap -gp4
+
+# If the optimizer is working, this function will get elided,
+# and thus will compile successfully.
+
+function pure() %{ /* pure */
+#error "should have been elided"
+%}
+
+
+probe begin
+{
+ pure ()
+}