gcc/testsuite/g++.dg/modules/lambda-1_a.C
raw| 1 | // { dg-module-do run } |
| 2 | // { dg-additional-options "-fmodules-ts" } |
| 3 | export module tom.riddle; |
| 4 | // { dg-module-cmi tom.riddle } |
| 5 | |
| 6 | export inline auto One (int a) |
| 7 | { |
| 8 | return [=] (int b) { return a + b; }; |
| 9 | } |
| 10 | |
| 11 | // Look Ma! this isn't inline! |
| 12 | export auto Two (int a) |
| 13 | { |
| 14 | return [=] (int b) { return a * b; }; |
| 15 | } |