1 // { dg-do compile { target c++17 } }
2 // { dg-options "-fno-inline -O0 -fabi-compat-version=0" }
4 inline auto var = [] () {return 2;};
13 static inline auto bar = [] () {return 4;};
21 // this one should have internal linkage (from svar)
22 static auto svar = [] () {return 8;};
28 // { dg-final { scan-assembler "_ZNK3varMUlvE_clEv:" } }
29 // { dg-final { scan-assembler "_ZNK3Foo3barMUlvE_clEv:" { xfail *-*-* } } }
30 // { dg-final { scan-assembler-not "_ZNK3FooUlvE_clEv:" { xfail *-*-* } } }