Debian Codegraph @

testsuite/semko/autocast14.stp

raw
1 #! stap -p2
2
3 global suns
4 probe begin
5 {
6 // Test DWARF assigned to an array index shouldn't propagate types
7 suns[& @cast(0, "sockaddr_un", "<sys/un.h>")] = 1;
8 foreach ([sun] in suns)
9 println(sun->sun_family)
10 }