Files
gcc-reflection/gcc/testsuite/g++.dg/modules/lambda-5_a.C
Patrick Palka 2f47ca046e c++/modules testsuite: fix a couple of dg-module-do directives
gcc/testsuite/ChangeLog:

	* g++.dg/modules/decltype-1_a.C: Add missing } to dg-module-do
	directive.
	* g++.dg/modules/lambda-5_a.C: Likewise.
2024-03-26 10:21:53 -04:00

25 lines
370 B
C

// PR c++/105322
// { dg-module-do link }
// { dg-additional-options -fmodules-ts }
// { dg-module-cmi pr105322.Lambda }
export module pr105322.Lambda;
struct A { };
export
inline void f1() {
A a;
auto g1 = [a] { }; // used to ICE here during stream out
}
export
template<class...>
void f2() {
A a;
auto g2 = [a] { };
}
export
inline auto g3 = [a=A{}] { };