PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn22.C
blobb16a7644c0f8146b4b9f61e7b7504e8c5c11c212
1 // { dg-do compile { target c++14 } }
3 struct A
5   operator auto();
6 };
8 // { dg-final { scan-assembler "_ZN1AcvDaEv" } }
9 A::operator auto() { return 42; }