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
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-assert1.C
blob
df2a31539ff006292a3fcb487ca0db43f266c887
1
// PR c++/59329
2
// { dg-do compile { target c++14 } }
3
4
#include <cassert>
5
6
inline constexpr int exampleFunction(int min, int max)
7
{
8
assert(min <= max);
9
return min + max;
10
}