Debian Codegraph @

testsuite/semko/autocast12.stp

raw
1 #! stap -p2
2
3 function sockaddr_un(ptr)
4 {
5 return & @cast(ptr, "sockaddr_un", "<sys/un.h>")
6 }
7
8 probe begin
9 {
10 // Test DWARF types returned from function calls,
11 // even failing properly when the field doesn't exist.
12 println( sockaddr_un(0) -> no_such_field )
13 }