gcc/testsuite/g++.dg/abi/lambda-ctx1.h
raw| 1 | inline auto L2 = [] <typename T, typename U> (T, U) -> void {}; |
| 2 | namespace B |
| 3 | { |
| 4 | inline auto L3 = [] <typename T, typename U> (T, U) -> void {}; |
| 5 | } |
| 6 | |
| 7 | struct C |
| 8 | { |
| 9 | int f = [] (auto){ return 1;}(&C::f); |
| 10 | C (); |
| 11 | }; |
| 12 | |
| 13 | C::C () |
| 14 | { |
| 15 | L2 (1, 1.2f); |
| 16 | B::L3 (1u, 1.2); |
| 17 | } |
| 18 | |
| 19 | template <typename A, typename B> int foo (A&&, B&&) {return 0;} |
| 20 | inline int q = foo ([](){}, [](){}); |