Debian Codegraph @

gcc/testsuite/g++.dg/modules/lambda-6_a.C

raw
1 // PR c++/107398
2 // { dg-additional-options "-fmodules-ts" }
3 // { dg-module-cmi Lambda6 }
4
5 export module Lambda6;
6
7 template <typename T>
8 struct R { static int x; };
9
10 template <typename T>
11 int R<T>::x = []{int i; return 1;}();
12
13 export int foo();
14 int foo() {
15 return R<int>::x;
16 }