Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr2.C

raw
1 // { dg-do compile { target c++14 } }
2
3 struct S { int a; const char* b; int c; int d = b[a]; };
4
5 constexpr int f(const S& s) { return s.a; }
6
7 int main()
8 {
9 constexpr int i = f(S{ 1, "asdf" });
10 }