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