]> sourceware.org Git - systemtap.git/commitdiff
overloading testcase
authorFelix Lu <flu@redhat.com>
Tue, 9 Aug 2016 14:18:55 +0000 (10:18 -0400)
committerFelix Lu <flu@redhat.com>
Tue, 9 Aug 2016 14:18:55 +0000 (10:18 -0400)
* testsuite/semko/overload.stp: New testcase.

testsuite/semko/overload.stp [new file with mode: 0755]

diff --git a/testsuite/semko/overload.stp b/testsuite/semko/overload.stp
new file mode 100755 (executable)
index 0000000..df20cee
--- /dev/null
@@ -0,0 +1,14 @@
+#! stap -Wp2
+
+function f() {
+  println(1)
+}
+
+// Unreachable overload
+function f() {
+  println(1)
+}
+
+probe begin {
+  f()
+}
This page took 0.028033 seconds and 5 git commands to generate.