Lines Matching refs:Trivial
8 struct Trivial { struct
9 Trivial(int x) : value(x) {} in Trivial() argument
13 struct NonTrivial : public Trivial { argument
14 NonTrivial(int x) : Trivial(x) {} in NonTrivial()
19 Trivial getTrivial() { in getTrivial()
20 return Trivial(42); // no-warning in getTrivial()
23 const Trivial &getTrivialRef() { in getTrivialRef()
24 …return Trivial(42); // expected-warning {{Address of stack memory associated with temporary object… in getTrivialRef()
37 struct TrivialSubclass : public Trivial {
38 TrivialSubclass(int x) : Trivial(x), anotherValue(-x) {} in TrivialSubclass()
63 const Trivial &baseRef = getTrivialSub(); in testMaterializeTemporaryExpr()
69 struct Derived : public Trivial {
70 Derived(int value) : Trivial(value), value2(-value) {} in Derived()
77 const Trivial * const &pointerRef = &obj; in test()
420 static const Trivial &ref = getTrivial(); in testStaticMaterializeTemporaryExpr()
423 static const Trivial &directRef = Trivial(42); in testStaticMaterializeTemporaryExpr()
427 thread_local static const Trivial &threadRef = getTrivial(); in testStaticMaterializeTemporaryExpr()
430 thread_local static const Trivial &threadDirectRef = Trivial(42); in testStaticMaterializeTemporaryExpr()