1 // RUN: %clang_cc1 -std=c++17 -fsyntax-only %s
3 // Verify that ASTContext::getFunctionTypeWithExceptionSpec (called through
4 // ASTContext::hasSameFunctionTypeIgnoringExceptionSpec from
5 // ExprEvaluatorBase::handleCallExpr in lib/AST/ExprConstant.cpp) does not crash
8 constexpr int f() noexcept
{ return 0; }
12 constexpr int g(F
* p
) { return p(); }
14 constexpr int n
= g(f
);