1 // PR c++/53792 - [C++11] improving compiler-time constexpr evaluation
2 // Test case from comment #8.
3 // { dg-do compile { target c++14 } }
4 // { dg-additional-options "-O1 -fdump-tree-optimized" }
9 constexpr unsigned foo ()
27 // Verify that the call to the foo() constexpr function is inlined
28 // regardless of whether or not it's invoked in a constant expression.
29 // { dg-final { scan-tree-dump-not "= *foo *\\\(" "optimized" } }