Debian Codegraph @

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

raw
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 }