Debian Codegraph @

testsuite/semko/autocast06.stp

raw
1 #! stap -p2
2
3 probe begin
4 {
5 // Test multiple DWARF assignments to a local shouldn't propagate types if
6 // they're the different underneath. The assignments themselves are ok,
7 // but we won't have a type to deref.
8 // (These are actually the same, but coming from different cast modules.)
9 if (randint(2))
10 sun = & @cast(0, "sockaddr_un", "<sys/un.h>");
11 else
12 sun = & @cast(0, "sockaddr_un", "<sys/socket.h><sys/un.h>");
13 println(sun->sun_family)
14 }