Debian Codegraph @

testsuite/semok/autocast01.stp

raw
1 #! stap -p2
2
3 probe begin
4 {
5 sun_path = @cast(0, "sockaddr_un", "<sys/un.h>")->sun_path;
6
7 // The extra parentheses are necessary so the parser will read this as an
8 // expression with an autocast [0] on it, rather than an arrayindex on a
9 // global. That distinction can't be made while parsing, because globals
10 // aren't known yet.
11 println((sun_path)[0])
12 }