Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-enum2.C

raw
1 // PR c++/105398
2 // { dg-do compile { target c++14 } }
3
4 auto f = [](auto &&m) {
5 enum E { _,e3,e2,e1,C4,C3,C2,C1 };
6 static constexpr int x_coeffs[3][4] = {
7 {e1,C2,C3,C4},
8 {e2,C1,C3,C4},
9 {e3,C1,C2,C4},
10 };
11 };
12
13 int main() {
14 f(0);
15 }