Debian Codegraph @

gcc/testsuite/g++.dg/modules/merge-21_a.C

raw
1 // PR c++/124431
2 // { dg-additional-options "-fmodules" }
3 // { dg-module-cmi A }
4
5 export module A;
6
7 export template <int N> struct mat {
8 int data[1] = { 123 };
9 constexpr const int& operator[](int x) const { return data[x]; };
10 };
11
12 export template <int N> struct S {
13 int field;
14 enum e { a };
15 enum class ce { ca };
16 };