mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
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.
25 lines
370 B
C
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{}] { };
|