Add execution tests of ARM EXT intrinsics
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-recursion.C
blobe3e13f755f958cccc6f21380e042c2e4c9c48404
1 // Test that we catch excessive recursion.
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fconstexpr-depth=5" }
4 // { dg-prune-output "in constexpr expansion" }
5 constexpr int f (int i) { return f (i-1); }
6 constexpr int i = f(42);        // { dg-error "constexpr evaluation depth" }