Debian Codegraph @

gcc/testsuite/g++.dg/ext/desig11.C

raw
1 // PR c++/85136
2 // { dg-options "" }
3
4 enum { e };
5
6 template<int I> void f()
7 {
8 const int x[] = { [e] = 0 };
9 const int y[] = { [I] = 0 };
10 }
11
12 int main()
13 {
14 f<0>();
15 }