OSDN Git Service

[AST][test] Add regression test forPointerExprEvaluator::VisitCXXNewExpr
authorJan Korous <jkorous@apple.com>
Thu, 9 Jul 2020 19:06:01 +0000 (12:06 -0700)
committerJan Korous <jkorous@apple.com>
Thu, 9 Jul 2020 19:11:08 +0000 (12:11 -0700)
commite81f9cd2137f258fd1ec6a169db836387bcca84a
treef51072dec00d3805936afd39f2cc5224a4c55eaf
parent7af27b65b3ce4690da97fd8048be7237e0358ef5
[AST][test] Add regression test forPointerExprEvaluator::VisitCXXNewExpr

This assert was failing:
assert(CAT && "unexpected type for array initializer");

until this patch landed:
9a7eda1bece887ca9af085d79fe6e4fb8826dcda
PR45350: Handle unsized array CXXConstructExprs in constant evaluation
clang/test/AST/regression-new-expr-crash.cpp [new file with mode: 0644]