• Home
  • Raw
  • Download

Lines Matching refs:res

25     const int* res = 0;  in testDynCastFromRadar()  local
29 res = &i; in testDynCastFromRadar()
31 res = 0; in testDynCastFromRadar()
33 return *res; // no warning in testDynCastFromRadar()
40 const int* res = 0; in testBaseToBase1() local
43 res = &i; in testBaseToBase1()
45 res = 0; in testBaseToBase1()
47 return *res; // no warning in testBaseToBase1()
55 const int* res = 0; in testMultipleLevelsOfSubclassing1() local
58 res = &i; in testMultipleLevelsOfSubclassing1()
60 res = 0; in testMultipleLevelsOfSubclassing1()
62 return *res; // no warning in testMultipleLevelsOfSubclassing1()
70 const int* res = 0; in testMultipleLevelsOfSubclassing2() local
73 res = &i; in testMultipleLevelsOfSubclassing2()
75 res = 0; in testMultipleLevelsOfSubclassing2()
77 return *res; // no warning in testMultipleLevelsOfSubclassing2()
106 const int* res = 0; in testDynCastUnknown() local
109 res = &i; in testDynCastUnknown()
111 res = 0; in testDynCastUnknown()
113 return *res; // expected-warning {{Dereference of null pointer}} in testDynCastUnknown()
149 const int* res = 0; in testUpcast() local
152 res = &i; in testUpcast()
154 res = 0; in testUpcast()
156 return *res; // no warning in testUpcast()
162 const int* res = 0; in testCastToVoidStar() local
165 res = &i; in testCastToVoidStar()
167 res = 0; in testCastToVoidStar()
169 return *res; // no warning in testCastToVoidStar()
194 const int* res = 0; in testDynCastMostLikelyWillFail() local
197 res = &i; in testDynCastMostLikelyWillFail()
199 res = 0; in testDynCastMostLikelyWillFail()
204 return *res; // expected-warning{{Dereference of null pointer}} in testDynCastMostLikelyWillFail()
237 const int* res = 0; in testDynCastFalsePositive() local
240 res = &i; in testDynCastFalsePositive()
242 res = 0; in testDynCastFalsePositive()
244 return *res; // expected-warning{{Dereference of null pointer}} in testDynCastFalsePositive()