]> sourceware.org Git - systemtap.git/commitdiff
semok/optimize.stp: remove string+long portion
authorAbegail Jakop <ajakop@redhat.com>
Wed, 23 Sep 2015 20:43:52 +0000 (16:43 -0400)
committerAbegail Jakop <ajakop@redhat.com>
Wed, 23 Sep 2015 21:39:26 +0000 (17:39 -0400)
work for PR18455 now produces a mismatch error in the case that
some binary expression has a long expression and a string expression,
meaning the string+long binary expression no longer gets optimized out.

testsuite/semok/optimize.stp

index 621bd1cacdd1afc7b122c65c44b39cb49bd82830..4927f420a64f9b223417ad0394cb54776154bae3 100755 (executable)
@@ -6,7 +6,7 @@
 global b
 
 function zoo (x) {
-  return "tada" + x
+  return x
 }
 
 probe begin {
This page took 0.027869 seconds and 5 git commands to generate.