diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C index 327efa44648..e3e13f755f9 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C @@ -1,5 +1,6 @@ // Test that we catch excessive recursion. -// { dg-options "-std=c++11 -fconstexpr-depth=5" } +// { dg-do compile { target c++11 } } +// { dg-options "-fconstexpr-depth=5" } // { dg-prune-output "in constexpr expansion" } constexpr int f (int i) { return f (i-1); } constexpr int i = f(42); // { dg-error "constexpr evaluation depth" } |