Debian Codegraph @

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

raw
1 // PR c++/86327
2 // { dg-do compile { target c++14 } }
3
4 int global = 0;
5
6 constexpr int
7 f (bool arg)
8 {
9 if (arg)
10 return 1;
11 return global++;
12 }