c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-return5.C
blobe8de5ed671e737ac07f9f4502597989457114f26
1 // PR c++/86327
2 // { dg-do compile { target c++14 } }
4 int global = 0;
6 constexpr int
7 f (bool arg)
9   if (arg)
10     return 1;
11   return global++;