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
tree-optimization/116481 - avoid building function_type[]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-assert1.C
blob
66acfcc6db0d89f815ecd9094058ce51ad554884
1
// PR c++/59329
2
// { dg-do compile { target c++14 } }
3
// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
4
5
#include <cassert>
6
7
inline constexpr int exampleFunction(int min, int max)
8
{
9
assert(min <= max);
10
return min + max;
11
}