Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-110382.C

raw
1 // PR c++/110382
2 // { dg-do compile { target c++14 } }
3
4 struct S {
5 double a = 0;
6 };
7
8 constexpr double
9 g ()
10 {
11 S arr[1];
12 S s = arr[0];
13 (void) arr[0];
14 return s.a;
15 }
16
17 int main() { return g (); }