Home
last modified time | relevance | path

Searched refs:HoldsPointer (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang/test/SemaCXX/
Dreturn-stack-addr.cpp192 struct HoldsPointer { int *p; }; struct
194 HoldsPointer ret_via_member_1() { in ret_via_member_1()
198 HoldsPointer ret_via_member_2() { in ret_via_member_2()
200 …return HoldsPointer(HoldsPointer{&n}); // expected-warning {{address of stack memory associated wi… in ret_via_member_2()
203 HoldsPointer ret_via_member_3() { in ret_via_member_3()
205 const HoldsPointer hp = HoldsPointer{&n}; in ret_via_member_3()