Debian Codegraph @

testsuite/transok/literal_tmp.stp

raw
1 #! /bin/bash
2
3 # PR18884 const-folded literals get unnecessary tmp storage
4
5 # Since the second version with two literals will be const-folded, it should
6 # result in the *exact* same generated source as with one literal.
7
8 script='probe oneshot { println($1) }'
9
10 diff <(stap -p3 -e "$script" '"foobar"') \
11 <(stap -p3 -e "$script" '"foo" . "bar"')