1 // PR c++/79533
2 
3 struct S {
4   S();
5   S(const S&);
6 };
7 S f();
8 S s(static_cast<S const &>(f()));
9 
10 // The static_cast prevents copy elision.
11 // { dg-final { scan-assembler "_ZN1SC1ERKS_" } }
12