Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-recursion2.C

raw
1 // PR c++/70344
2 // { dg-do compile { target c++11 } }
3 // { dg-options -O }
4
5 struct Z
6 {
7 Z () = default;
8 Z (Z const &) = default;
9 constexpr Z (Z &&) {}
10 };
11
12 constexpr int
13 fn (Z v)
14 {
15 return fn (v);
16 }
17
18 auto t = fn (Z ());