PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / nsdmi-aggr2.C
blob83cb6c2439bdf2ea8237d393cb132dba1166b6aa
1 // { dg-do compile { target c++14 } }
3 struct S { int a; const char* b; int c; int d = b[a]; };
5 constexpr int f(const S& s) { return s.a; }
7 int main()
9   constexpr int i = f(S{ 1, "asdf" });