Debian Codegraph @

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

raw
1 // PR c++/118169
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-O" }
4
5 struct A { constexpr A (int *x) : s(x) {} ~A (); int *s; };
6 struct B { A t; int u = 0; };
7 void foo (B &&);
8
9 void
10 bar (int &x)
11 {
12 foo ({ &x });
13 }