repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-return5.C
blob
e8de5ed671e737ac07f9f4502597989457114f26
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
}